file is deprecated, make some changes in emoji

This commit is contained in:
Daniel Odendahl Jr
2017-04-20 00:36:37 +00:00
parent fef35440b2
commit 2df6c08de4
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -21,6 +21,6 @@ module.exports = class EmojiCommand extends Command {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
return message.say(message.guild.emojis.map(e => e).join(' '));
return message.say(message.guild.emojis.map(e => e).join('')).catch(() => message.say(':x: Error! Something went wrong!'));
}
};