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

Clarify !kick -clean ban/unban reasons

This commit is contained in:
Dragory 2020-08-05 02:51:20 +03:00
parent 3ce8b049fe
commit 65615d393b

View file

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