Why does it say (node:3668) Warning: Supplying "ephemeral" for interaction response options is depre
(node:3668) Warning: Supplying "ephemeral" for interaction response options is deprecated. Utilize flags instead.
(Use
node --trace-warnings ...
to show where the warning was created)
Code:
16 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ā
Marked as resolved by staffBecause it is deprecated.
when I run node dist/index.js
It still gives the error? even tho there is non

because its lowercase
does not matter

Did you compile your updated code? Vscode search is most likely ignoring dist folder based on your .gitignore, so it may have your old code if you didn't compile
how can I do that
sorry i always worked with npm run dev and then it worked an then I learned i need to do dist/index.js
š
dev one maybe running ts file "directly". You need to compile your code every time you make changes if you are using typescript
it runs: tsx watch src/index.ts š
Exactly, ut runs ts files directly in the sense that it compiles it behind the scene. It is generally not recommended to be used in prod, so compiling and running the compiled .js file is what you should do. Also this all is beyond the scope of d.js, if you have further issues regarding this, please open a post in #other-js-ts
how to compile tho
You should know that already if you are using typescript. Did you not code it yourself?
i always used npm run dev not in producation
That's just running a script that you define. You would know if you coded that. Which I honestly doubt. Anyhow, you usually use
tsc
or there maybe another script defined if you got the code from somewhere (usually named build/compile, etc...)