From 4a1813f172fb4ea7f5d95dbdd0450e1a97708a4d Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 28 May 2017 13:22:38 +0000 Subject: [PATCH] Fix --- commands/moderation/unban.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/moderation/unban.js b/commands/moderation/unban.js index e1a32801..b7ba73f5 100644 --- a/commands/moderation/unban.js +++ b/commands/moderation/unban.js @@ -49,9 +49,9 @@ module.exports = class UnbanCommand extends Command { const { id, reason } = args; const bans = await msg.guild.fetchBans(); if (!bans.has(id)) return msg.say('This ID is not in the Guild Banlist.'); - const member = bans.get(id); + const member = bans.get(id).user; try { - await msg.guild.unban(member.user.id, reason); + await msg.guild.unban(member, reason); msg.say(':ok_hand:'); const embed = new RichEmbed() .setAuthor(msg.author.tag, msg.author.displayAvatarURL)