Skip to content

Commit

Permalink
fixed ban errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sabattle committed Sep 11, 2020
1 parent b1c9088 commit 644f0da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/mod/ban.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = class BanCommand extends Command {
if (!reason) reason = '`None`';
if (reason.length > 1024) reason = reason.slice(0, 1021) + '...';

await member.ban(reason);
await member.ban({ reason: reason });

const embed = new MessageEmbed()
.setTitle('Ban Member')
Expand Down
2 changes: 1 addition & 1 deletion src/commands/mod/softban.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = class SoftBanCommand extends Command {
if (!reason) reason = '`None`';
if (reason.length > 1024) reason = reason.slice(0, 1021) + '...';

await member.ban(reason);
await member.ban({ reason: reason });
await message.guild.members.unban(member.user, reason);

const embed = new MessageEmbed()
Expand Down

0 comments on commit 644f0da

Please sign in to comment.