mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Destructuring Args
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = class KillCommand extends Command {
|
||||
if (message.channel.type !== 'dm') {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
const roleplayed = args.thing;
|
||||
return message.say(`${message.author} *kills* ${roleplayed}`);
|
||||
const { thing } = args;
|
||||
return message.say(`${message.author} *kills* ${thing}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user