dminfraction fix

This commit is contained in:
nolan 2020-08-31 09:50:05 -07:00
parent 248dc1f794
commit 62018ad8b4
2 changed files with 4 additions and 4 deletions

View File

@ -80,9 +80,9 @@ class DmInfractionSetting extends Setting {
this.client.resolver.resolveInfractions.bind(this.client.resolver)
);
if(result) {
const method =
}
// if(result) {
// const method =
// }
}

View File

@ -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)