'api' does not exist in type 'ClientOptions'.

I'm not able to specify API-related options because I get this: Object literal may only specify known properties, and 'api' does not exist in type 'ClientOptions'.
3 Replies
Noxillio
NoxillioOP12mo ago
Unless that's not how you're supposed to use those? It does say in the documentation to do that. This also happens after registering plugin-api
Favna
Favna12mo ago
Make sure all your dependencies are fully up-to-date then remove your lockfile and node_modules and reinstall. There was a borked release of @sapphire/pieces a couple of weeks ago.
Dolliwyx
Dolliwyx2w ago
This seems to occur again for me at least. I have tried removing the lockfile and node_modules and reinstalling. I've tried restarting the language server just in case but it still shows up. Apologies for necroposting @sapphire/[email protected] @sapphire/[email protected] ++ Everything still works just fine if the error is ignored
Want results from more Discord servers?
Add your server