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

Update warn.ts

This commit is contained in:
srqc 2023-01-12 18:40:14 -05:00 committed by GitHub
parent 1dccd69ad1
commit 69da0fbc74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ export const WarnAction = automodAction({
const modActions = pluginData.getPlugin(ModActionsPlugin);
for (const member of membersToWarn) {
if (!member) continue;
await modActions.warnMember(member, reason, { contactMethods, caseArgs, isAutomodAction: true });
await modActions.warnMember(reason, member, member.user, { contactMethods, caseArgs, isAutomodAction: true });
}
},
});