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
@@ -11,7 +11,7 @@ module.exports = class PotatoCommand extends commando.Command {
});
}
async run(message, args) {
async run(message) {
if(message.channel.type !== 'dm') {
if(!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return;
}