Can't deploy slash commands!
I can't deploy my slash commands, its just doesn't give any error, i dont get it
9 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Read the bullet points
what is that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
What's the error?
it prints "Loaded 2 Slash Commands" and nothing
code keep running
its a cts code
thats my SlashCommandLoader.cts file
is there anything wrong
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
still same
dont mind the ExperimentalWarning, its just a warning for importing json
i just tried it with normal .js file and it worked fine
idk why but its not working on typescript
it works if you make your file extension "cts"
when you make your file extension "cts", node.js acts like its a commonjs file
builder converts it very good
wait i'll send you builded code
yeah i said cjs to make people understand easily
i was about to say that
i need to use require because import can be used top of the code
i was trying it i'll let you know if it works
import() doesnt work properly
oh i have to use await
i figured it out
in my reactRole.cjs file (its a slashcommand file) importing another file which has interval in it
and it causes code wont stop and rest doesn't save
finally