From 8150ac50c0657205c07c06137fb65264c5343c56 Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@users.noreply.github.com> Date: Wed, 7 Jun 2023 09:48:09 +1000 Subject: [PATCH] Update messageCreate.ts --- src/events/messageCreate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index 5ccc65e..37e44b5 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -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)){ automodded = true; message.delete().catch(()=>console.log('bannedWords automod; msg got possibly deleted by another bot.'));