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

automod: add triggers for mod actions

This commit is contained in:
Dragory 2021-02-14 16:58:02 +02:00
parent ce6ffd16cf
commit 30426960e7
34 changed files with 412 additions and 3 deletions

View file

@ -62,6 +62,8 @@ export const CreateKickCaseOnManualKickEvt = modActionsEvt(
mod: mod ? stripObjectToScalars(mod) : null,
caseNumber: createdCase?.case_number ?? 0,
});
pluginData.state.events.emit("kick", member.id, kickAuditLogEntry.reason || undefined);
}
},
);