mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 15:58:06 +02:00
Catch some stuff
This commit is contained in:
@@ -49,7 +49,7 @@ module.exports = class HackbanCommand extends Command {
|
||||
reason: `${msg.author.tag}: ${reason}`
|
||||
});
|
||||
} catch (err) {
|
||||
return msg.say(`Could not hackban the user: \`${err.message}\``);
|
||||
return msg.say(`Failed to hackban ${user.tag}: \`${err.message}\`.`);
|
||||
}
|
||||
return msg.say(`Successfully hackbanned ${user.tag}.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user