diff --git a/src/structure/components/settings/logging/Moderation.js b/src/structure/components/settings/logging/Moderation.js index 9a5268d..87731d6 100644 --- a/src/structure/components/settings/logging/Moderation.js +++ b/src/structure/components/settings/logging/Moderation.js @@ -105,7 +105,7 @@ class ModerationLog extends Setting { } } - return { index }; + return { index, params: langParams }; } diff --git a/src/structure/interfaces/Infraction.js b/src/structure/interfaces/Infraction.js index 143570b..cd17930 100644 --- a/src/structure/interfaces/Infraction.js +++ b/src/structure/interfaces/Infraction.js @@ -107,7 +107,7 @@ class Infraction { } if (dminfraction.enabled && !this.silent) { - if (this.targetType === 'USER') { + if (this.targetType === 'USER' && dminfraction.infractions.includes(this.type)) { let message = dminfraction.messages[this.type] || dminfraction.messages.default; if (!message) message = ''; message = message