title: Sending a message in smaller chunks
body: <p>I am using DiscordJS and their API has a character limit and will reject message if limit is exceeded.</p>
  <p>Through <code>fetchData()</code>I am successfully building <code>assignedPrint</code>, which is an array of messages that I would like to send over the API.</p>
  <p>So I already have the array ready to go but I am also using an auto update feature (courtesy of <a href="https://www.youtube.com/watch?v=T__HRuiXNb0" rel="nofollow noreferrer">WOK</a>) where every set amount of time, array would be flushed refilled with fresh data and sent over again for editing the original message through the <code>message.edit()</code> method.</p>
  <p>It works just fine but I am forseeing that my array might get bigger over time and sending a single message may break things because of the API max character limit.</p>
  <pre class="lang-js prettyprint-override"><code>const getText = () =&gt; {
      return assignedPrint
      + greengo + 'Updating in ' + counter + 's...' + greenstop;
  };
  
  const updateCounter = async (message) =&gt; {
      message.edit(getText());
      counter -= seconds;
      if (counter &lt;= 0) {
          counter = startingCounter;
          // emptying the array before fetching again for the message edit
          assignedPrint = [];
          await fetchData();
      }
      setTimeout(() =&gt; {
          updateCounter(message);
      }, 1000 * seconds);
  };
  
  module.exports = async (bot) =&gt; {
      await fetchData();
      const message = await bot.channels.cache.get(tgt).send(getText());
      updateCounter(message);
  };
  </code></pre>
  <p>As you can see, the hurdle is that <code>getText()</code>includes everything.
  I tried sending one element as a time using <code>for (cont e of assignedPrint)</code> and it worked but how can I edit every message upon refreshing data, knowing that new data may be added or some already sent data could be removed...
  The easiest of course is to do it in one single message but again, it may hit the quota and cause a crash.</p>
  <p>Thanks.</p>