diff --git a/commands/guildinfo/guildinfo.js b/commands/guildinfo/guildinfo.js index 0eb38a3f..996b0c86 100644 --- a/commands/guildinfo/guildinfo.js +++ b/commands/guildinfo/guildinfo.js @@ -22,7 +22,8 @@ module.exports = class GuildInfoCommand extends commando.Command { run(message) { if (message.channel.type !== 'dm') { - if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return; + 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!'); } console.log(`[Command] ${message.content}`); const embed = new Discord.RichEmbed() diff --git a/commands/search/neopet.js b/commands/search/neopet.js index 4df11333..77b205f4 100644 --- a/commands/search/neopet.js +++ b/commands/search/neopet.js @@ -18,7 +18,7 @@ module.exports = class NeopetCommand extends commando.Command { run(message, args) { if (message.channel.type !== 'dm') { - if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return; + if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } console.log(`[Command] ${message.content}`); const petID = args.pet; diff --git a/package.json b/package.json index e6392dba..5b1074bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "21.0.0", + "version": "21.0.1", "description": "A Discord Bot", "main": "shardingmanager.js", "repository": {