fix: encode reason
This commit is contained in:
parent
d4f12ca1c8
commit
ecc25bd2e3
5 changed files with 5 additions and 5 deletions
|
@ -64,7 +64,7 @@ export const ForcebanCmd = modActionsCommand({
|
|||
pluginData.state.serverLogs.ignoreLog(LogType.MEMBER_BAN, user.id);
|
||||
|
||||
try {
|
||||
await pluginData.guild.banMember(user.id, 1, reason);
|
||||
await pluginData.guild.banMember(user.id, 1, encodeURIComponent(reason));
|
||||
} catch (e) {
|
||||
sendErrorMessage(pluginData, msg.channel, "Failed to forceban member");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue