title: Discord.js Guide : Property 'commands' does not exist on type 'Client<boolean>' in Typescript
body: <p><code>node:v16.11.0</code>
  <code>&quot;discord.js&quot;: &quot;^13.2.0&quot;</code></p>
  <p>I am setting up an example Discord.js bot.</p>
  <p>In <a href="https://discordjs.guide/creating-your-bot/command-handling.html#individual-command-files" rel="nofollow noreferrer">this guide</a>, I am to the point of adding this line:</p>
  <p><code>client.commands = new Collection();</code></p>
  <p>Typescript then complains with: <code>Property 'commands' does not exist on type 'Client&lt;boolean&gt;'</code></p>
  <p><a href="https://stackoverflow.com/questions/62860164/stuck-with-adding-variable-to-discord-client-object-typescript">This answer</a> seems to be in the same vein as what I want. However I'm still running into some problems. If I add a <code>declare module &quot;discord.js&quot;</code> and declare new typings, it doesn't seem to extend the existing type, it overwrites it. And when when I do, it doesn't know what a <code>Collection</code> is in my custom typings file, since that's custom to the new Discord.js library. I can't help but feel this shouldn't be required in an official guide.</p>
  <p>I'm wondering if anyone else has made a typescript Discord bot and found a newer solution to this problem.</p>
  <p>Thank you for your time.</p>