InteractionHandler Buttons
I have a problem with my buttons. Somehow they don't work... I guess it's something easy, but I can't figure out what it could be. The buttons are in a folder named
interaction-handler/Buttons
The error I am getting is:
Solution:Jump to solution
Oh wait no I'm silly, just call
interaction.update()
https://discord.js.org/#/docs/discord.js/main/class/ButtonInteraction?scrollTo=update...7 Replies
The code for one of the buttons is:
You cant call
editReply()
on an interaction if you haven't already called reply()
ordefer()
The button is on an existing interactionmessage, then how should I edit it?
If memory serves, you can call
interaction.deferUpdate()
and then interaction.editReply()
to update the message.Solution
Oh wait no I'm silly, just call
interaction.update()
https://discord.js.org/#/docs/discord.js/main/class/ButtonInteraction?scrollTo=updateAh. I will try that. Thanks.
Currently not available to change the code.
Thanks @Ben