title: discord.js content: Must be 2000 or fewer in length
body: <p>I have a message which is lets say about 2k characters so how can i split the message so that it will send the messages in fragments </p>
  
  <p>Example my Help command exceeded 2000  characters </p>
  
  <pre><code>  if (!args[0]) {
      // Load guild settings (for prefixes and eventually per-guild tweaks)
      const settings = message.settings;
  
      // Filter all commands by which are available for the user's level, using the &lt;Collection&gt;.filter() method.
      const myCommands = message.guild ? client.commands.filter(cmd =&gt; client.levelCache[cmd.conf.permLevel] &lt;= level) : client.commands.filter(cmd =&gt; client.levelCache[cmd.conf.permLevel] &lt;= level &amp;&amp;  cmd.conf.guildOnly !== true);
  
      // Here we have to get the command names only, and we use that array to get the longest name.
      // This make the help commands "aligned" in the output.
      const commandNames = myCommands.keyArray();
      const longest = commandNames.reduce((long, str) =&gt; Math.max(long, str.length), 0);
  
      let currentCategory = "";
      let output = `= Command List =\n\n[Use ${settings.prefix}help &lt;commandname&gt; for details]\n`;
      const sorted = myCommands.array().sort((p, c) =&gt; p.help.category &gt; c.help.category ? 1 :  p.help.name &gt; c.help.name &amp;&amp; p.help.category === c.help.category ? 1 : -1 );
      sorted.forEach( c =&gt; {
        const cat = c.help.category.toProperCase();
        if (currentCategory !== cat) {
          output += `\n== ${cat} ==\n`;
          currentCategory = cat;
        }
        output += `${settings.prefix}${c.help.name}${" ".repeat(longest - c.help.name.length)} :: ${c.help.description}\n`;
      });
      message.channel.send(output, {code:"asciidoc"});
    } else {
      // Show individual command's help.
      let command = args[0];
      if (client.commands.has(command)) {
        command = client.commands.get(command);
        if (level &lt; client.levelCache[command.conf.permLevel]) return;
        message.channel.send(`= ${command.help.name} = \n${command.help.description}\nusage::${command.help.usage}`, {code:"asciidoc"});
      }
    }
  </code></pre>
  
  <p>any easy way to split the message</p>
  
  <p>I saw something <a href="https://stackoverflow.com/a/52863304/12843955">https://stackoverflow.com/a/52863304/12843955</a> but didnt get it </p>