3
0
Fork 0
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:
almeidx 2020-07-28 21:27:36 +01:00
parent d4f12ca1c8
commit ecc25bd2e3
5 changed files with 5 additions and 5 deletions

View file

@ -66,7 +66,7 @@ export const MassbanCmd = modActionsCommand({
const casesPlugin = pluginData.getPlugin(CasesPlugin);
for (const userId of args.userIds) {
try {
await pluginData.guild.banMember(userId, 1, banReason);
await pluginData.guild.banMember(userId, 1, encodeURIComponent(banReason));
await casesPlugin.createCase({
userId,