${j122j} - Is there any way I change the typescrip...

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.
1 Reply
Spinel
Spinel2y ago
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 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