mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 08:45:03 +00:00
Don't send null/undefined as audit log reasons
This commit is contained in:
parent
c2ca3d605f
commit
e6d7bb15eb
4 changed files with 8 additions and 4 deletions
|
@ -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, encodeURIComponent(banReason));
|
||||
await pluginData.guild.banMember(userId, 1, banReason != null ? encodeURIComponent(banReason) : undefined);
|
||||
|
||||
await casesPlugin.createCase({
|
||||
userId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue