From d70e66d18e0419a33a203f49f2e4a227f1121764 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 7 Sep 2018 11:00:40 +0000 Subject: [PATCH] Sort emoji by name --- commands/info/emoji-list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/info/emoji-list.js b/commands/info/emoji-list.js index 16875e2f..abcb6ea1 100644 --- a/commands/info/emoji-list.js +++ b/commands/info/emoji-list.js @@ -25,8 +25,8 @@ module.exports = class EmojiListCommand extends Command { } run(msg, { type }) { - const emojis = msg.guild.emojis.filter(emoji => type === 'animated' ? emoji.animated : !emoji.animated).sort(); + const emojis = msg.guild.emojis.filter(emoji => type === 'animated' ? emoji.animated : !emoji.animated); if (!emojis.size) return msg.say(`This server has no ${type} custom emoji.`); - return msg.say(emojis.map(emoji => emoji.toString()).join(' '), { split: { char: ' ' } }); + return msg.say(emojis.map(emoji => emoji.toString()).sort().join(' '), { split: { char: ' ' } }); } };