#Is there a non-deprecated replacement for MessageInteraction.commandName

9 messages · Page 1 of 1 (latest)

spring linden
#

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 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.

sleek thornBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
fierce grailBOT
rain wolf
#

Ah wait, no, commandName is not documented by discord on the new interface

hot lantern
#

could the MessageInteractionMetadata.id be used to find the command name?

rain wolf
#

that's an interaction id. without having data about the original interaction from somewhere else that's useless

hot lantern
#

what I mean is that the command Id

#

but reading the doc it probably is not

jovial spear
#

Wait... is it being deprecated already?