mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
fix: encode reason
This commit is contained in:
parent
d4f12ca1c8
commit
ecc25bd2e3
5 changed files with 5 additions and 5 deletions
|
@ -46,7 +46,7 @@ export const UnbanCmd = modActionsCommand({
|
|||
|
||||
try {
|
||||
ignoreEvent(pluginData, IgnoredEventType.Unban, user.id);
|
||||
await pluginData.guild.unbanMember(user.id, reason);
|
||||
await pluginData.guild.unbanMember(user.id, encodeURIComponent(reason));
|
||||
} catch (e) {
|
||||
sendErrorMessage(pluginData, msg.channel, "Failed to unban member; are you sure they're banned?");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue