I have converted by bot to typescript from ESM JS, now it logs in successfully but then none of the commands (message and slash) execute, console output:
[INFO] ApplicationCommandRegistries: Initializing...[INFO] ApplicationCommandRegistries: Took 201ms to initialize.
[INFO] ApplicationCommandRegistries: Initializing...[INFO] ApplicationCommandRegistries: Took 201ms to initialize.
- Which version of @sapphire/framework are you using? 4.2.2 - What's your file/folder structure? attached - Did you use the CLI to generate your bot? no - What's your "main" property in package.json? src/index.ts - Are you using TypeScript? And if so, how are you compiling and running your code? That is to say, what are your build and startup scripts? attached - In case you are using version 3.0.0 or higher of @sapphire/framework, and your problem related to message commands, did you add loadMessageCommandListeners to your SapphireClient options? yes
Is there anything I could be missing?
Solution
change
What's your "main" property in package.json? src/index.ts
What's your "main" property in package.json? src/index.ts