Advertisement
3MoSteve

Emojis List Code

Jun 30th, 2020
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. client.on('message', async (message) => {
  2. if (!message.guild || message.author.bot) return;
  3. if (message.content.startsWith('#emojis')) {
  4. var emojis = message.guild.emojis;
  5. if (emojis.cache.size == 0) return message.channel.send('This Guild has no emojis');
  6. else {
  7. var embed = new Discord.MessageEmbed()
  8. .setColor('GREEN')
  9. .setTimestamp()
  10. .setTitle(message.guild.name + '\'s Emojis list')
  11. .setThumbnail(message.guild.iconURL() || message.author.displayAvatarURL())
  12. .setDescription(`Not Animated : ${emojis.cache.filter (e => !e.animated).map (e => e).join(' ')}\n\n\nAnimated : ${emojis.cache.filter (e => e.animated).map (e => e).join(' ')}`)
  13. message.channel.send(embed);
  14. }
  15. }
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement