Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client.on('message', async (message) => {
- if (!message.guild || message.author.bot) return;
- if (message.content.startsWith('#emojis')) {
- var emojis = message.guild.emojis;
- if (emojis.cache.size == 0) return message.channel.send('This Guild has no emojis');
- else {
- var embed = new Discord.MessageEmbed()
- .setColor('GREEN')
- .setTimestamp()
- .setTitle(message.guild.name + '\'s Emojis list')
- .setThumbnail(message.guild.iconURL() || message.author.displayAvatarURL())
- .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(' ')}`)
- message.channel.send(embed);
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement