3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 16:25:03 +00:00

Fix automod mutes not using default contact methods

This commit is contained in:
Dragory 2020-12-03 16:47:11 +02:00
parent 4dfcb5b195
commit aaabdeb978

View file

@ -31,7 +31,7 @@ export const MuteAction = automodAction({
async apply({ pluginData, contexts, actionConfig, ruleName, matchResult }) {
const duration = actionConfig.duration ? convertDelayStringToMS(actionConfig.duration)! : undefined;
const reason = actionConfig.reason || "Muted automatically";
const contactMethods = resolveActionContactMethods(pluginData, actionConfig);
const contactMethods = actionConfig.notify ? resolveActionContactMethods(pluginData, actionConfig) : undefined;
const caseArgs = {
modId: pluginData.client.user.id,