This commit is contained in:
Daniel Odendahl Jr
2017-04-16 16:51:10 +00:00
parent 35984ef71b
commit b9e8b8660a
+1 -1
View File
@@ -22,7 +22,7 @@ module.exports = class PokedexCommand extends Command {
});
}
run(message, args) {
async run(message, args) {
if (message.channel.type !== 'dm') {
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!');