#Get message id from an interaction
17 messages · Page 1 of 1 (latest)
• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
ButtonInteraction#message
The message to which the component was attached
ButtonInteraction#message
The message to which the component was attached
<ButtonInteraction>.message.id
wait how do I get that?
get what?
use the typeguard interaction.isButton()
BaseInteraction#isButton()
Indicates whether this interaction is a [ButtonInteraction](<https://old.discordjs.dev/#/docs/discord.js/14.9.0/class/ButtonInteraction>).
No it isn’t. When a Button gets pressed it’ll be ButtonInteraction, not ChatInputCommandInteraction
I dont understand in this event
client.on("interactionCreate", (interaction)=>{})
how do I access interaction.message.id?
By… literally writing that