fix: encode reason
This commit is contained in:
parent
d4f12ca1c8
commit
ecc25bd2e3
5 changed files with 5 additions and 5 deletions
|
@ -88,7 +88,7 @@ export async function actualKickMemberCmd(
|
|||
ignoreEvent(pluginData, IgnoredEventType.Unban, memberToKick.id);
|
||||
|
||||
try {
|
||||
await pluginData.guild.unbanMember(memberToKick.id, reason);
|
||||
await pluginData.guild.unbanMember(memberToKick.id, encodeURIComponent(reason));
|
||||
} catch (e) {
|
||||
sendErrorMessage(pluginData, msg.channel, "Failed to unban the user after banning them (-clean)");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue