3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Fix crash

This commit is contained in:
Dragory 2020-01-29 02:51:07 +02:00
parent 89f545eb62
commit 249fff259b
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -999,7 +999,7 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema, ICustomOverride
modId: this.bot.user.id,
extraNotes: [caseExtraNote],
};
const contactMethods = this.readContactMethodsFromAction(rule.actions.warn);
const contactMethods = this.readContactMethodsFromAction(rule.actions.mute);
let userIdsToMute = [];
if (matchResult.type === "message" || matchResult.type === "embed" || matchResult.type === "other") {
@ -1023,7 +1023,7 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema, ICustomOverride
modId: this.bot.user.id,
extraNotes: [caseExtraNote],
};
const contactMethods = this.readContactMethodsFromAction(rule.actions.warn);
const contactMethods = this.readContactMethodsFromAction(rule.actions.kick);
let membersToKick = [];
if (matchResult.type === "message" || matchResult.type === "embed" || matchResult.type === "other") {
@ -1049,7 +1049,7 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema, ICustomOverride
modId: this.bot.user.id,
extraNotes: [caseExtraNote],
};
const contactMethods = this.readContactMethodsFromAction(rule.actions.warn);
const contactMethods = this.readContactMethodsFromAction(rule.actions.ban);
let userIdsToBan = [];
if (matchResult.type === "message" || matchResult.type === "embed" || matchResult.type === "other") {