Button interaction how to get the guild cache from former command
the category is fetched by former setup slash command how can i get it then using in button commnad interaciton
6 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!Pass the id in the customId of the button and splice it out
i mean categroy snowflower which was definied in slashcommand i need get it in button
yes
so pass it in in the customid of the button
you can try interaction.message.interactionMetadata.interactedMessageId
thats the id of the message the button is on
which is the same as interaction.message.id and is not what they are looking for