why my ping.ts doesnt wanna run after being transpiled?
So my slash command doesnt wanna execute after its been transpiled to js even though after I did run it on ts-node, it worked without any issues.
4 Replies
in your package.json, what is your main set to?
Solution
it sounds like your passing it the ts code and not the transpiled js
:this:
Barring that I recommend at least making this ephemeral if you insist on the not having a ping slash commands at all (it's not really useful as a slash command)
Im confident I edited it to node the dist folder and yeah ive even executed node dist/bot.js
Apparently my main was set to src/bot.js
Ive edited everything but not this, thanks for the help, its working
And it was a test slash command because I sitll wanna learn ts