dminfraction fix
This commit is contained in:
parent
248dc1f794
commit
62018ad8b4
@ -80,9 +80,9 @@ class DmInfractionSetting extends Setting {
|
||||
this.client.resolver.resolveInfractions.bind(this.client.resolver)
|
||||
);
|
||||
|
||||
if(result) {
|
||||
const method =
|
||||
}
|
||||
// if(result) {
|
||||
// const method =
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user