mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +00:00
Don't check word filter for moderators
This commit is contained in:
parent
0a0f291cba
commit
38bd64cbc2
|
@ -120,6 +120,8 @@ async function wordFilterCheck(message: Message, config: ServerConfig) {
|
|||
const match = checkMessageForFilteredWords(message.content, config);
|
||||
if (!match) return;
|
||||
|
||||
if (await isModerator(message, false)) return;
|
||||
|
||||
console.log('Message matched word filter!');
|
||||
|
||||
// Lack of `break` is intended here
|
||||
|
|
Loading…
Reference in a new issue