mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +02:00
Change arg assignment
This commit is contained in:
@@ -30,8 +30,7 @@ module.exports = class HackbanCommand extends Command {
|
||||
});
|
||||
}
|
||||
|
||||
async run(msg, args) {
|
||||
const { id, reason } = args;
|
||||
async run(msg, { id, reason }) {
|
||||
if (id === msg.author.id) return msg.say('I don\'t think you want to ban yourself...');
|
||||
if (id === msg.guild.ownerID) return msg.say('Don\'t you think that might be betraying your leader?');
|
||||
let user;
|
||||
|
||||
Reference in New Issue
Block a user