summaryrefslogtreecommitdiff
path: root/commands/help.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/help.js')
-rw-r--r--commands/help.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/commands/help.js b/commands/help.js
index 36d4630..0b9191e 100644
--- a/commands/help.js
+++ b/commands/help.js
@@ -1,7 +1,7 @@
/** **************************************
*
* Help: Command for AleeBot
- * Copyright (C) 2017-2020 Alee Productions
+ * Copyright (C) 2017-2021 Alee Productions
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -38,12 +38,12 @@ module.exports.run = async (client, message) => {
}
const 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.');
+ if (!message.guild.members.cache.get(client.user.id).permissions.has('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.MessageEmbed()
- .setAuthor('AleeBot ' + require('../storage/settings.json').abVersion + ` Help and on ${client.guilds.cache.size} servers`, client.user.avatarURL())
- .setDescription('Every command you input into AleeBot is `' + prefix + '`')
+ .setAuthor('AleeBot ' + require('../storage/settings.json').abVersion + ` Help`, client.user.avatarURL())
+ .setDescription('Every command you input into AleeBot is `ab:`')
+ .setFooter(`Currently serving on ${client.guilds.cache.size} servers`)
.setColor('#1fd619')
- .setFooter('© Copyright 2017-2020 Alee Productions, Licensed with GPL-3.0');
categories.forEach(function(x) {
let cat = '';
@@ -55,7 +55,7 @@ module.exports.run = async (client, message) => {
embed.addField(x, cat, true);
});
- await message.channel.send({embed});
+ await message.channel.send({embeds: [embed]});
};
exports.conf = {