This commit is contained in:
Daniel Odendahl Jr
2017-05-28 13:19:26 +00:00
parent 2339a70146
commit 3ac7cd6194
+1 -2
View File
@@ -50,9 +50,8 @@ module.exports = class UnbanCommand extends Command {
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);
console.log(member);
try {
await msg.guild.unban(member.id, reason);
await msg.guild.unban(member.user.id, reason);
msg.say(':ok_hand:');
const embed = new RichEmbed()
.setAuthor(msg.author.tag, msg.author.displayAvatarURL)