mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Add a 0 Check
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user