Change arg assignment

This commit is contained in:
Daniel Odendahl Jr
2017-09-16 01:44:44 +00:00
parent a4f290f50d
commit 1c9ac56831
135 changed files with 166 additions and 273 deletions
+1 -2
View File
@@ -23,8 +23,7 @@ module.exports = class HelpCommand extends Command {
});
}
async run(msg, args) {
const { command } = args;
async run(msg, { command }) {
const commands = this.client.registry.findCommands(command, false, msg);
if (command) {
if (commands.length === 1) {
+1 -2
View File
@@ -26,8 +26,7 @@ module.exports = class ShardInfoCommand extends Command {
});
}
async run(msg, args) {
const { shard } = args;
async run(msg, { shard }) {
const memory = await this.client.shard.broadcastEval('process.memoryUsage().heapUsed');
const uptime = await this.client.shard.fetchClientValues('uptime');
const guilds = await this.client.shard.fetchClientValues('guilds.size');