Skip to content

Get Button Click When Message Created with DiscordInteractionResponseBuilder #1453

Answered by ploring04
alex182 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alex182
Comment options

Answer selected by alex182
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants