mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +00:00
Update warn.ts
This commit is contained in:
parent
1dccd69ad1
commit
69da0fbc74
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ export const WarnAction = automodAction({
|
||||||
const modActions = pluginData.getPlugin(ModActionsPlugin);
|
const modActions = pluginData.getPlugin(ModActionsPlugin);
|
||||||
for (const member of membersToWarn) {
|
for (const member of membersToWarn) {
|
||||||
if (!member) continue;
|
if (!member) continue;
|
||||||
await modActions.warnMember(member, reason, { contactMethods, caseArgs, isAutomodAction: true });
|
await modActions.warnMember(reason, member, member.user, { contactMethods, caseArgs, isAutomodAction: true });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue