aboutsummaryrefslogtreecommitdiff
path: root/commands/help.js
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-07-07 20:19:13 -0400
committerAlee <alee14498@gmail.com>2018-07-07 20:19:13 -0400
commit6448a7300e81514a20ee087ea8aac3dead225091 (patch)
tree33054a6f4a758c3eb6b69cb57bb62dbd4b95c5cb /commands/help.js
parent4a06fd7b1545bb04b8e43bbeaee69285fa69cc5e (diff)
parent80bb069022f4093eef81c9897b2c8e8e6ab07d34 (diff)
downloadAleeBot-6448a7300e81514a20ee087ea8aac3dead225091.tar.gz
AleeBot-6448a7300e81514a20ee087ea8aac3dead225091.tar.bz2
AleeBot-6448a7300e81514a20ee087ea8aac3dead225091.zip
Merge branch 'beta'
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) {