mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 21:40:51 +02:00
Fix
This commit is contained in:
@@ -49,9 +49,9 @@ module.exports = class UnbanCommand extends Command {
|
|||||||
const { id, reason } = args;
|
const { id, reason } = args;
|
||||||
const bans = await msg.guild.fetchBans();
|
const bans = await msg.guild.fetchBans();
|
||||||
if (!bans.has(id)) return msg.say('This ID is not in the Guild Banlist.');
|
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 {
|
try {
|
||||||
await msg.guild.unban(member.user.id, reason);
|
await msg.guild.unban(member, reason);
|
||||||
msg.say(':ok_hand:');
|
msg.say(':ok_hand:');
|
||||||
const embed = new RichEmbed()
|
const embed = new RichEmbed()
|
||||||
.setAuthor(msg.author.tag, msg.author.displayAvatarURL)
|
.setAuthor(msg.author.tag, msg.author.displayAvatarURL)
|
||||||
|
|||||||
Reference in New Issue
Block a user