Is there a non-deprecated replacement for MessageInteraction.commandName

Is there a replacement for this: https://discord.js.org/docs/packages/discord.js/14.18.0/MessageInteraction:Interface#commandName That's not deprecated, my bot uses it and i want to migrate to a non-deprecated solution.
discord.js
discord.js
discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
2 Replies
d.js toolkit
d.js toolkit2d 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!
d.js docs
d.js docs2d ago
:interface: MessageInteractionMetadata [email protected] Partial data of the interaction that a message is a result of

Did you find this page helpful?