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

feat: added ban/unban reasons to their respective api calls

This commit is contained in:
almeidx 2020-07-27 18:29:30 +01:00
parent 140ba84544
commit d4f12ca1c8
5 changed files with 6 additions and 7 deletions

View file

@ -88,7 +88,7 @@ export async function actualKickMemberCmd(
ignoreEvent(pluginData, IgnoredEventType.Unban, memberToKick.id);
try {
await pluginData.guild.unbanMember(memberToKick.id);
await pluginData.guild.unbanMember(memberToKick.id, reason);
} catch (e) {
sendErrorMessage(pluginData, msg.channel, "Failed to unban the user after banning them (-clean)");
}