From f10fcfd9ea1cc8bae9980e92256abe61805e8f52 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 10 Apr 2017 21:14:05 +0000 Subject: [PATCH] Add a 0 Check --- commands/botinfo/info.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/botinfo/info.js b/commands/botinfo/info.js index 1fb4446e..197c2978 100644 --- a/commands/botinfo/info.js +++ b/commands/botinfo/info.js @@ -31,6 +31,9 @@ module.exports = class InfoCommand extends commando.Command { 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 + 1; + if (shardID === 0) { + return message.say(':x: Error! Invalid Shard!'); + } if (!shardID) { shardID = this.client.shard.id + 1; }