diff --git a/structure/client/components/settings/moderation/DmInfraction.js b/structure/client/components/settings/moderation/DmInfraction.js index a3d9943..7252b66 100644 --- a/structure/client/components/settings/moderation/DmInfraction.js +++ b/structure/client/components/settings/moderation/DmInfraction.js @@ -80,9 +80,9 @@ class DmInfractionSetting extends Setting { this.client.resolver.resolveInfractions.bind(this.client.resolver) ); - if(result) { - const method = - } + // if(result) { + // const method = + // } } diff --git a/structure/moderation/interfaces/Infraction.js b/structure/moderation/interfaces/Infraction.js index e816e6d..b739472 100644 --- a/structure/moderation/interfaces/Infraction.js +++ b/structure/moderation/interfaces/Infraction.js @@ -74,7 +74,7 @@ class Infraction { if(this.guild._settings.dmInfraction.enabled && this.targetType === 'user' && this.type !== 'NOTE') { - let message = this.guild._settings.dmInfraction.custom[this.type] || this.guild._settings.dmInfraction.custom.default; + let message = this.guild._settings.dmInfraction.messages[this.type] || this.guild._settings.dmInfraction.messages.default; if(!message) message = ""; message = message .replace(/\{(guild|server)\}/ugim, this.guild.name)