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

re-add duration after removal by merge with auto-action distinguish

This commit is contained in:
Dark 2021-04-28 21:34:31 +02:00
parent b3f5011f5d
commit d8c79bd707
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8

View file

@ -43,12 +43,17 @@ export const BanAction = automodAction({
const modActions = pluginData.getPlugin(ModActionsPlugin);
for (const userId of userIdsToBan) {
await modActions.banUserId(userId, reason, {
await modActions.banUserId(
userId,
reason,
{
contactMethods,
caseArgs,
deleteMessageDays,
isAutomodAction: true,
});
},
duration,
);
}
},
});