Cleanup Stray Commands

This commit is contained in:
Daniel Odendahl Jr
2017-03-22 01:06:56 +00:00
parent 1063b7e3c2
commit 3b1fe16ada
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ module.exports = class EmojiCommand extends commando.Command {
async 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;
}
console.log("[Command] " + message.content);
if (message.channel.type !== 'dm') {