diff options
-rw-r--r-- | src/listeners/message/automodCreate.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listeners/message/automodCreate.ts b/src/listeners/message/automodCreate.ts index 03c1603..01fc803 100644 --- a/src/listeners/message/automodCreate.ts +++ b/src/listeners/message/automodCreate.ts @@ -41,7 +41,7 @@ export default class AutomodMessageCreateListener extends BushListener { const offences: { [key: string]: 0 | 1 | 2 | 3 } = {}; const cleanMessageContent = message.content?.toLowerCase().replace(/ /g, ''); - for (const word in wordKeys) { + for (const word of wordKeys) { const cleanWord = word.toLowerCase().replace(/ /g, ''); if (cleanMessageContent.includes(cleanWord)) { |