This commit is contained in:
Daniel Odendahl Jr
2017-04-10 15:23:39 +00:00
parent 7344cba2f9
commit 3f55eb87c8
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = class InfoCommand extends commando.Command {
if (!shardID) {
shardID = this.client.shard.id;
}
else if (shardID > this.client.shardCount - 1 && shardID < 0) {
else 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)');