title: Discord.js how can I create an invite for every guild my bot is in?
body: <p>I am trying to make a command, where I can get every guild invite that the bot is currently in.
  Current code:</p>
  <pre class="lang-js prettyprint-override"><code>client.on('message', async (message) =&gt; {
   if (message.content.startsWith(prefix + 'invite')) {
    let invite = client.guilds
     .createInvite({
      maxAge: 0, // 0 = infinite expiration
      maxUses: 0, // 0 = infinite uses
     })
     .catch(console.error);
    message.channel.send(invite);
   }
  });
  </code></pre>
  <p>Error:</p>
  <pre class="lang-none prettyprint-override"><code>DiscordAPIError: Cannot send an empty message
  </code></pre>