#how do i edit a message without the interaction failed error
15 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.
i mean like this error
ButtonInteraction#update()
Updates the original message of the component on which the interaction was received on.
This method edits the message that the button is on
message.update('foobar')? now it does nothing
is it msg.update instead
Only if msg is a ButtonInteraction instance
It changes the message that the button was on
@alpine field you call the functions not on the message itself, but on the interaction object that u got from the event
- msg.update("uhoh")
+ buttonInteraction.update("uhoh")
example(idk how ur coding it rn):
client.on("interaction", buttonInteraction=>{
buttonInteraction.update("uhoh")
})
aight tanks bruv