S-IAF
Join ServerSapphire - Imagine a framework
old-sapphire-support
${j122j} - Is there any way I change the typescrip...
$${j122j}11/8/2022
Is there any way I change the typescript types for container.client to be my own client class?
It extends SapphireClient and it'll be easier to use without doing (container.client as Lightbulb) every time I need to use it.
It extends SapphireClient and it'll be easier to use without doing (container.client as Lightbulb) every time I need to use it.

SSpinel11/8/2022
Tag suggestion for @${j122j}:
If you're adding custom properties to your Client class and you want them to be accessible when accessing the client through something like
https://gist.github.com/Favna/26ed5b2df82d424203b71b9ffbce85c4
For more information on module augmentation see: https://www.typescriptlang.org/docs/handbook/declaration-merging.html
If you're adding custom properties to your Client class and you want them to be accessible when accessing the client through something like
this.container.client
you'll have to add module augmentation:https://gist.github.com/Favna/26ed5b2df82d424203b71b9ffbce85c4
For more information on module augmentation see: https://www.typescriptlang.org/docs/handbook/declaration-merging.html