Skip to content

Listen MessageReactionAdd #1168

Answered by FedorLap2006
sercanarga asked this question in Q&A
Discussion options

You must be logged in to vote

To listen for a particular event you would need to register an event handler in the Session using Session.AddHandler method.
MessageReactionAdd handler in particular has the following signature: func (*Session, *MessageReactionAdd).
Additionally, since these events received through the gateway, you would need to Open a Session, if you still haven't done it yet.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by sercanarga
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
Converted from issue

This discussion was converted from issue #1167 on April 24, 2022 21:48.