From 62018ad8b4e205325c3ec97aaa0a08eb188134d4 Mon Sep 17 00:00:00 2001 From: nolan Date: Mon, 31 Aug 2020 09:50:05 -0700 Subject: [PATCH] dminfraction fix --- .../client/components/settings/moderation/DmInfraction.js | 6 +++--- structure/moderation/interfaces/Infraction.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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)