forked from Galactic/galactic-bot
bugfixes
This commit is contained in:
parent
189a04cc25
commit
defbe1b310
@ -105,7 +105,7 @@ class ModerationLog extends Setting {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return { index };
|
return { index, params: langParams };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ class Infraction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (dminfraction.enabled && !this.silent) {
|
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;
|
let message = dminfraction.messages[this.type] || dminfraction.messages.default;
|
||||||
if (!message) message = '';
|
if (!message) message = '';
|
||||||
message = message
|
message = message
|
||||||
|
Loading…
Reference in New Issue
Block a user