mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +02:00
Small changes, reply to some things
This commit is contained in:
@@ -33,7 +33,7 @@ module.exports = class UnbanCommand extends Command {
|
||||
|
||||
async run(msg, { id, reason }) {
|
||||
const bans = await msg.guild.fetchBans();
|
||||
if (!bans.has(id)) return msg.say('This ID is not in the server banlist.');
|
||||
if (!bans.has(id)) return msg.reply('This ID is not in the server banlist.');
|
||||
const member = bans.get(id).user;
|
||||
await msg.say(`Are you sure you want to unban ${member.tag} (${member.id})?`);
|
||||
const verification = await verify(msg.channel, msg.author);
|
||||
@@ -41,7 +41,7 @@ module.exports = class UnbanCommand extends Command {
|
||||
try {
|
||||
await msg.guild.unban(member, `${msg.author.tag}: ${reason}`);
|
||||
} catch (err) {
|
||||
return msg.say(`Failed to unban ${member.tag}: \`${err.message}\`.`);
|
||||
return msg.reply(`Failed to unban ${member.tag}: \`${err.message}\`.`);
|
||||
}
|
||||
return msg.say(`Successfully unbanned ${member.tag}.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user