Hey, my ready listener doesn't want to run and I don't know why. I'm kind of new to this framework and I copied the most things from the guide.
I've attached some screenshots with the relevant code and output.
1 messages · Page 1 of 1 (latest)
Hey, my ready listener doesn't want to run and I don't know why. I'm kind of new to this framework and I copied the most things from the guide.
I've attached some screenshots with the relevant code and output.
inside package.json, there should be a property called main. make sure its set to dist/index.js because sapphire uses that to determine where your commands/listeners/etc are located
the warning for such can also be found here: https://www.sapphirejs.dev/docs/Guide/getting-started/getting-started-with-sapphire (in the first red "danger" box)
Ah, thanks. 👍
I thought I need to set it to src/index.ts because I'm using typescript.
Thank you for marking this question as solved!