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

Allow Automod to distinguish whether mod actions are manual or automatic (#179)

This commit is contained in:
Nils 2021-04-28 21:06:33 +02:00 committed by GitHub
parent a6740dfbfb
commit abc9da0e68
18 changed files with 106 additions and 32 deletions

View file

@ -9,6 +9,7 @@ export async function runAutomodOnModAction(
modAction: ModActionType,
userId: string,
reason?: string,
isAutomodAction: boolean = false,
) {
const user = await resolveUser(pluginData.client, userId);
@ -18,6 +19,7 @@ export async function runAutomodOnModAction(
modAction: {
type: modAction,
reason,
isAutomodAction,
},
};