From c10fbc2aa265543cbd78e0d203157f9a1cbadbe7 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 30 Apr 2017 15:10:54 +0000 Subject: [PATCH] Fix? --- commands/moderation/ban.js | 5 ++++- commands/moderation/kick.js | 4 +++- commands/moderation/softban.js | 7 +++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index 018cb0db..4a22a0cc 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -51,7 +51,10 @@ module.exports = class BanCommand extends Command { } catch (err) { await message.say('Failed to send DM to user.'); } - await member.ban(7); + await member.ban({ + days: 7, + reason + }); await message.say(':ok_hand:'); const embed = new RichEmbed() .setAuthor(message.author.tag, message.author.displayAvatarURL) diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index a9ed2d28..50ecfaf4 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -48,7 +48,9 @@ module.exports = class KickCommand extends Command { } catch (err) { await message.say('Failed to send DM.'); } - await member.kick(); + await member.kick({ + reason + }); await message.say(':ok_hand:'); const embed = new RichEmbed() .setAuthor(message.author.tag, message.author.displayAvatarURL) diff --git a/commands/moderation/softban.js b/commands/moderation/softban.js index 147a4d8d..425e2358 100644 --- a/commands/moderation/softban.js +++ b/commands/moderation/softban.js @@ -50,14 +50,17 @@ module.exports = class SoftbanCommand extends Command { } catch (err) { await message.say('Failed to send DM to user.'); } - await member.ban(7); + await member.ban({ + days: 7, + reason + }); await message.guild.unban(member.user); await message.say(':ok_hand:'); const embed = new RichEmbed() .setAuthor(message.author.tag, message.author.displayAvatarURL) .setColor(0xFF4500) .setTimestamp() - .setDescription(`**Member:** ${member.user.tag} (${member.id})\n**Action:** Ban\n**Reason:** ${reason}`); + .setDescription(`**Member:** ${member.user.tag} (${member.id})\n**Action:** Softban\n**Reason:** ${reason}`); return modlogs.send({embed}); } catch (err) { return message.say('An Unknown Error Occurred.');