3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 00:35:02 +00:00

Allow automod to issue tempbans

This commit is contained in:
Dark 2021-04-28 03:19:13 +02:00
parent c26ab2977f
commit 769888f7d2
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8
6 changed files with 27 additions and 11 deletions

View file

@ -165,8 +165,8 @@ export const ModActionsPlugin = zeppelinGuildPlugin<ModActionsPluginType>()("mod
},
banUserId(pluginData) {
return (userId: string, reason?: string, banOptions?: BanOptions) => {
banUserId(pluginData, userId, reason, banOptions);
return (userId: string, reason?: string, banOptions?: BanOptions, banTime?: number) => {
banUserId(pluginData, userId, reason, banOptions, banTime);
};
},