Remove Starboard and Attempt to fix Forbidden Errors

This commit is contained in:
Daniel Odendahl Jr
2017-03-25 14:40:36 +00:00
parent c69330144b
commit dc575e8404
2 changed files with 2 additions and 29 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ module.exports = class UrbanDictionary extends commando.Command {
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(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
}
console.log(`[Command] ${message.content}`);
let wordToDefine = args.word;