title: Discord.js v12 Emoji List Command
body: <p>I'm trying to make an emoji list command in discord.js v12. However, if I run the command in a server with many emojis I get an Invalid Form Body error as the embed description cannot have more than 2048 characters. Hence I tried to split the message. Here is my code:</p>
  <pre class="lang-js prettyprint-override"><code>const { MessageEmbed } = require('discord.js');
  
  module.exports = {
   name: 'emojis',
   description: &quot;Gets a guild's emojis&quot;,
  
   async run(client, message, args) {
    const charactersPerMessage = 2000;
    const emojis = message.guild.emojis.cache.map((e) =&gt; {
     return `${e} **-** \`:${e.name}:\``;
    });
    const numberOfMessages = Math.ceil(emojis.length / charactersPerMessage);
    const embed = new MessageEmbed().setTitle(`Emoji List`);
    for (i = 0; i &lt; numberOfMessages; i++) {
     message.channel.send(
      embed.setDescription(
       emojis.slice(i * charactersPerMessage, (i + 1) * charactersPerMessage)
      )
     );
    }
   },
  };
  </code></pre>
  <p>Even after this, I get the same Invalid Body Form error. Here is the error I get:</p>
  <pre><code>(node:211) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
  embed.description: Must be 2048 or fewer in length.
      at RequestHandler.execute (/home/runner/Utki-the-bot/node_modules/discord.js/src/rest/RequestHandler.js:170:25)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
  (node:211) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
  (node:211) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  </code></pre>
  <p>Can you help me out? Thanks in advance!</p>