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:
parent
b3f5011f5d
commit
d8c79bd707
1 changed files with 11 additions and 6 deletions
|
@ -43,12 +43,17 @@ export const BanAction = automodAction({
|
||||||
|
|
||||||
const modActions = pluginData.getPlugin(ModActionsPlugin);
|
const modActions = pluginData.getPlugin(ModActionsPlugin);
|
||||||
for (const userId of userIdsToBan) {
|
for (const userId of userIdsToBan) {
|
||||||
await modActions.banUserId(userId, reason, {
|
await modActions.banUserId(
|
||||||
contactMethods,
|
userId,
|
||||||
caseArgs,
|
reason,
|
||||||
deleteMessageDays,
|
{
|
||||||
isAutomodAction: true,
|
contactMethods,
|
||||||
});
|
caseArgs,
|
||||||
|
deleteMessageDays,
|
||||||
|
isAutomodAction: true,
|
||||||
|
},
|
||||||
|
duration,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue