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

Merge branch 'knub30' of git://github.com/almeidx/ZeppelinBot into almeidx-knub30

This commit is contained in:
Dragory 2020-08-05 02:45:54 +03:00
commit f2467d1f8b
5 changed files with 6 additions and 7 deletions

View file

@ -40,7 +40,7 @@ export async function banUserId(
ignoreEvent(pluginData, IgnoredEventType.Ban, userId);
try {
const deleteMessageDays = Math.min(30, Math.max(0, banOptions.deleteMessageDays ?? 1));
await pluginData.guild.banMember(userId, deleteMessageDays);
await pluginData.guild.banMember(userId, deleteMessageDays, encodeURIComponent(reason));
} catch (e) {
return {
status: "failed",