Skip to content

Commit

Permalink
Lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Jul 8, 2024
1 parent 5bbc834 commit b39a91f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/automod/AutoModManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class AutoModManager {
const reason = 'Using forbidden words or phrases';
const comment = `(Filter ID: ${word.id})`;
await bot.delete(message, reason + ' ' + comment);
if (word.response !== 'disabled' && word.punishment.action !== 'dm') {
if (word.response !== 'disabled' && word.punishment.action.toLowerCase() !== 'dm') {
await this.#sendWarning(message, word.getResponse());
}
if (word.punishment.action !== 'none') {
Expand Down

0 comments on commit b39a91f

Please sign in to comment.