discordjs / guide

The official guide for discord.js, created and maintained by core members of its community.
https://discordjs.guide
MIT License
1.57k stars 2.3k forks source link

fix(cache-customization): Access `client` from callback parameter #1540

Closed sdanialraza closed 11 months ago

sdanialraza commented 11 months ago

Please describe the changes this PR makes and why it should be merged: Using client while constructing it leads to it being of type any instead of Client<boolean>. Accessing it from the callback parameter fixes this.