mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 04:25:01 +00:00
removed unnecessary encodeURIComponent on reasons
This commit is contained in:
parent
f9e1343003
commit
ca30dd204e
3 changed files with 4 additions and 7 deletions
|
@ -95,7 +95,7 @@ export const MassbanCmd = modActionsCmd({
|
|||
|
||||
await pluginData.guild.bans.create(userId as Snowflake, {
|
||||
days: deleteDays,
|
||||
reason: banReason != null ? encodeURIComponent(banReason) : undefined,
|
||||
reason: banReason ?? undefined,
|
||||
});
|
||||
|
||||
await casesPlugin.createCase({
|
||||
|
|
|
@ -60,10 +60,7 @@ export const MassunbanCmd = modActionsCmd({
|
|||
}
|
||||
|
||||
try {
|
||||
await pluginData.guild.bans.remove(
|
||||
userId as Snowflake,
|
||||
unbanReason != null ? encodeURIComponent(unbanReason) : undefined,
|
||||
);
|
||||
await pluginData.guild.bans.remove(userId as Snowflake, unbanReason ?? undefined);
|
||||
|
||||
await casesPlugin.createCase({
|
||||
userId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue