More Fixes

This commit is contained in:
Daniel Odendahl Jr
2017-04-10 15:28:46 +00:00
parent 3f55eb87c8
commit ae2003b536
+2 -5
View File
@@ -30,11 +30,8 @@ module.exports = class InfoCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
}
let shardID = args.shardID;
if (!shardID) {
shardID = this.client.shard.id;
}
else if (shardID > this.client.options.shardCount - 1 && shardID < 0) {
const shardID = args.shardID || this.client.shard.id;
if (shardID > this.client.options.shardCount - 1 || shardID < 0) {
return message.say(':x: Error! Invalid Shard!');
}
const memory = await this.client.shard.broadcastEval('Math.round(process.memoryUsage().heapUsed / 1024 / 1024)');