Add a Few Stragglers

This commit is contained in:
Daniel Odendahl Jr
2017-04-08 03:26:04 +00:00
parent f538f13de6
commit e88ec8362e
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -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()