From d01d5afefc0d4906ff72a3277d5842aa5e18741b Mon Sep 17 00:00:00 2001
From: Loic Bersier <loic.bersier1@gmail.com>
Date: Sat, 22 Sep 2018 18:36:06 +0200
Subject: [PATCH] List emotes on server

---
 commands/utility/listemote.js | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 commands/utility/listemote.js

diff --git a/commands/utility/listemote.js b/commands/utility/listemote.js
new file mode 100644
index 00000000..3dc3a4fd
--- /dev/null
+++ b/commands/utility/listemote.js
@@ -0,0 +1,16 @@
+const { Command } = require('discord.js-commando');
+module.exports = class listEmoteCommand extends Command {
+    constructor(client) {
+        super(client, {
+            name: 'listemote',
+            group: 'fun',
+            memberName: 'listemote',
+            description: `List the emotes available on the server`,
+        });
+    }
+
+    async run(message, { text }) {
+            const emojiList = message.guild.emojis.map((e, x) => (x + ' = ' + e) + ' | ' +e.name).join('\n');
+            message.channel.send(emojiList);
+          }
+};
\ No newline at end of file