Skip to content

Commit

Permalink
Don't send public messages for DM punishments
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Jul 8, 2024
1 parent 16d2691 commit 5bbc834
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') {
if (word.response !== 'disabled' && word.punishment.action !== 'dm') {
await this.#sendWarning(message, word.getResponse());
}
if (word.punishment.action !== 'none') {
Expand Down

0 comments on commit 5bbc834

Please sign in to comment.