mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 16:30:58 -05:00
Update messageCreate.ts
This commit is contained in:
parent
ee9307e3b7
commit
75659c6ae8
@ -34,7 +34,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (client.config.botSwitches.automod && !message.member.roles.cache.has(client.config.mainServer.roles.dcmod) && message.guildId == client.config.mainServer.id){
|
if (client.config.botSwitches.automod && !message.member.roles.cache.has(client.config.mainServer.roles.admin) && message.guildId == client.config.mainServer.id){
|
||||||
if (await client.bannedWords._content.findById(msgarr) && !Whitelist.includes(message.channelId)){
|
if (await client.bannedWords._content.findById(msgarr) && !Whitelist.includes(message.channelId)){
|
||||||
automodded = true;
|
automodded = true;
|
||||||
message.delete().catch(()=>console.log('bannedWords automod; msg got possibly deleted by another bot.'));
|
message.delete().catch(()=>console.log('bannedWords automod; msg got possibly deleted by another bot.'));
|
||||||
|
Loading…
Reference in New Issue
Block a user