-
I am sending in an ephemeral interaction message using the DiscordInteractionResponseBuilder. The message has a button and I would like to be able to take action when it is clicked, how would I do that if
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Pretty sure you need to make sure you are handling the ComponentInteractionCreated event from the DiscordClient. That should give you the Id of the button along with the DiscordMessage among other fields in the ComponentInteractionCreateEventArgs. It also has the Interaction object that can be used. |
Beta Was this translation helpful? Give feedback.
Pretty sure you need to make sure you are handling the ComponentInteractionCreated event from the DiscordClient. That should give you the Id of the button along with the DiscordMessage among other fields in the ComponentInteractionCreateEventArgs. It also has the Interaction object that can be used.