title: Why am I getting a ReferenceError: AbortController is not defined in Discord.js v13?
body: <p>Today (7.8.2021) <a href="https://www.npmjs.com/package/discord.js" rel="nofollow noreferrer">Discord.js v13</a> has been released. So I upgraded my previous <a href="https://www.npmjs.com/package/discord.js" rel="nofollow noreferrer">Discord.js</a> installation with</p>
  <blockquote>
  <p><code>npm i discord.js@latest</code></p>
  </blockquote>
  <p>and then adapted my basic <em>index.js</em> file to this state (I followed the <a href="https://discordjs.guide/creating-your-bot/#logging-in-to-discord" rel="nofollow noreferrer">Discord.js Guide</a>):</p>
  <pre><code>const { Client, Intents } = require(&quot;discord.js&quot;);
  
  const client = new Client({
    intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES],
  });
  
  client.once(&quot;ready&quot;, () =&gt; {
    console.log(&quot;Ready!&quot;);
  });
  
  client.login(&quot;my-token&quot;);
  </code></pre>
  <p>However when I try to run my code I keep getting this error:</p>
  <blockquote>
  <p>$ node .</p>
  <p>(node:11216) UnhandledPromiseRejectionWarning: ReferenceError: AbortController is not defined</p>
  <p>at RequestHandler.execute (C:\<em>pathTo</em>\node_modules\discord.js\src\rest\RequestHandler.js:172:15)</p>
  </blockquote>
  <p>I've been working with <a href="https://www.npmjs.com/package/discord.js" rel="nofollow noreferrer">Discord.js</a> since 2018, hence I was astonished that I was having trouble with the new release.
  Is this an issue with the <a href="https://www.npmjs.com/package/discord.js" rel="nofollow noreferrer">Discord.js v13</a> library? If not how can I fix the error?</p>