A variety of fixes and a change in the way errors are handled.

This commit is contained in:
Daniel Odendahl Jr
2017-04-25 17:37:01 +00:00
parent d3dad31c6d
commit 49d092d7c1
51 changed files with 117 additions and 108 deletions
+1 -1
View File
@@ -13,6 +13,6 @@ module.exports = class EmojiCommand extends Command {
run(message) {
return message.say(message.guild.emojis.map(e => e).join(''))
.catch(() => message.say(':x: Error! Perhaps you have no custom emoji?'));
.catch(() => message.say('There was an error sending the emoji. Perhaps you have no custom emoji?'));
}
};
+1 -1
View File
@@ -21,7 +21,7 @@ module.exports = class GuildInfoCommand extends Command {
run(message) {
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS'))
return message.say(':x: Error! I don\'t have the Embed Links Permission!');
return message.say('This Command requires the `Embed Links` Permission.');
const embed = new RichEmbed()
.setColor(0x00AE86)
.setThumbnail(message.guild.iconURL)