summaryrefslogtreecommitdiff
path: root/commands/help.js
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-07-07 20:17:38 -0400
committerAlee <alee14498@gmail.com>2018-07-07 20:17:38 -0400
commit80bb069022f4093eef81c9897b2c8e8e6ab07d34 (patch)
treeea606955feba06f2fdcbbe4cf1a9860d3b17b854 /commands/help.js
parent300080d295f75bd01e365cde25f5d5ca7cbd848a (diff)
downloadAleeBot-80bb069022f4093eef81c9897b2c8e8e6ab07d34.tar.gz
AleeBot-80bb069022f4093eef81c9897b2c8e8e6ab07d34.tar.bz2
AleeBot-80bb069022f4093eef81c9897b2c8e8e6ab07d34.zip
2.11.1 patch updatev2.11.1
Diffstat (limited to 'commands/help.js')
-rw-r--r--commands/help.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/help.js b/commands/help.js
index 318e5e2..4b19a57 100644
--- a/commands/help.js
+++ b/commands/help.js
@@ -38,13 +38,13 @@ module.exports.run = async (client, message) => {
}
let prefix = prefixes[message.guild.id].prefixes
-
+ if (!message.guild.member(client.user).hasPermission('EMBED_LINKS')) return message.reply('ERROR: AleeBot doesn\'t have the permission to send embed links please enable them to use the full help.');
const embed = new Discord.RichEmbed()
.setAuthor('AleeBot ' + require('../storage/settings.json').abVersion + ` Help and on ${client.guilds.size} servers`, client.user.avatarURL)
.setDescription('Every command you input into AleeBot is `' + prefix + '`')
.setColor('#1fd619')
.setFooter('AleeCorp Copyright 2018, Licensed with GPL-3.0');
-
+
categories.forEach(function(x) {
let cat = '';
commands.forEach(function(command) {