[TS] Command not found when trying to deploy commands after switching filter from .js to .ts
I have the deploy commands file from the guide in
/src/util/deploy-commands.ts
:
https://hst.sh/ugubalayir.js
running this works fine, however, when I change
to
I get the error that my ping command isn't found: https://hst.sh/yulitipaqe.js
DJS v14.2.0
NODE v16.10.012 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Already done
Is your ping file called ping.ts?
yes
What outputs commandFiles?
you mean what does commandFiles output when logged?
Yes
[ 'ping.ts' ]
So it doesnt skip it
Oh ill look into the links you’ve sent didnt see them at first
Weird
Dunno srry
:/
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
even then, ofc it does.
the compile step doesn't know it's switching the context and the path leads to the (compiled) js files
so if you filter for ts it won't find anything
this has hardly anything to do with discord.js, locking