Using Typescript in Sapphire.
I was changing between Javascript to Typescript in the framework, and ping command don't work. My code:
ping.ts
index.js
4 Replies
- Did you use a folder of the examples repository or did you use the CLI to generate your bot?
- What's your file/folder structure?
- What's your "main" property in
package.json
- Are you using TypeScript? And if so, how are you compiling and running your code?
- Are you using the version 2 or version 3 of @sapphire/framework
?
- In case you are using version 3 of @sapphire/framework
, and your problem related to message commands, did you add loadMessageCommandListeners
to your SapphireClient
options
Remember that if you are new to @sapphire/framework
it is important that you read the user guide.why is your index file js?
I don't think it is
Oh nevermind
nah nevermind I saw the new guide and damn it's way too hard (for me, first time using ts), I need a weekend to work in it, however thanks