This commit is contained in:
Daniel Odendahl Jr
2017-05-28 13:22:38 +00:00
parent 3ac7cd6194
commit 4a1813f172
+2 -2
View File
@@ -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)