text: const {MessageEmbed} = require('discord.js');
  
  module.exports={
      name: 'emojis',
      category: 'server',
      description: 'displays every emoji of the guild, where the command is used',
      aliases: ['emojilist','emoji'],
      usage: '',
      timeout: 5,
      run: async(jerry, message, args)=>{
          try{
          let Emojis = "";
          let EmojisAnimated = "";
          let EmojiCount = 0;
          let Animated = 0;
          let OverallEmojis = 0;
          function Emoji(id){
              return jerry.emojis.cache.get(id).toString()
          }
          message.guild.emojis.cache.forEach(emoji => {
              OverallEmojis++;
              if(emoji.animated) {
                  Animated++;
                  EmojisAnimated+=Emoji(emoji.id)
              }else {
                  EmojiCount++;
                  Emojis+=Emoji(emoji.id)
              }
          })
          let emn = new MessageEmbed()
          emn.setTitle(`Emojis of ${message.guild.name}`)
          emn.setColor("#964B00")
          emn.setThumbnail(message.guild.iconURL({ dynamic: true, format: 'png', size: 512 }))
          emn.setDescription(`**Animated [${Animated}]**:\n${EmojisAnimated}\n\n**Standard [${EmojiCount}]**:\n${Emojis}`)
          emn.setColor(0x2f3136)
          message.channel.send(emn);
          }catch(err){
              return message.channel.send('Oops! Looks like something went wrong, You can try again Later.')
          }
      }
  }