Error Ephermeral

Supplying "ephemeral" for interact ion response options is deprecated. Utilize flags ins tead. (Use node --trace-warnings ... to show where the wa rning was created) Warning: Supplying "ephemeral" for interaction respon se options is deprecated. Utilize flags instead. at ChatInputCommandInteraction.reply (/home/conta iner/node_modules/discord.js/src/structures/interface s/InteractionResponses.js:168:19 at Object.execute (/home/container/Events/Interac tions/SlashCommands.js:14:26 at Client.execute (/home/container/Handlers/event at Client.emit (node:events:530:35) Handler.js:13:40 at InteractionCreateAction.handle (/home/containe r/node_modules/discord.js/src/client/actions/Interact ionCreate.js:97:12 at module.exports [as INTERACTION_CREATE] (/home/ container/node_modules/discord.js/src/client/websocke t/handlers/INTERACTION_CREATE.js:4:36 at WebSocketManager.handlePacket (/home/container node_modules/discord.js/src/client/websocket/WebSock
2 Replies
d.js toolkit
d.js toolkit5mo ago
- 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 OP
d.js docs
d.js docs5mo ago
The ephemeral option when replying to an interaction will be removed in v15
- {..., ephemeral: true}
+ {..., flags: MessageFlags.Ephemeral}
- {..., ephemeral: true}
+ {..., flags: MessageFlags.Ephemeral}
Read here on how to specify multiple flags

Did you find this page helpful?