Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add message reaction remove emoji event #1563

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Suhaibinator
Copy link
Contributor

Add support for gateway event MESSAGE_REACTION_REMOVE_EMOJI see

image

@Suhaibinator
Copy link
Contributor Author

@FedorLap2006

@Suhaibinator
Copy link
Contributor Author

@FedorLap2006 please give this a review when you get a chance

Copy link
Collaborator

@FedorLap2006 FedorLap2006 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry it took a long time.

@@ -309,6 +309,11 @@ type MessageReactionRemoveAll struct {
*MessageReaction
}

// MessageReactionRemoveEmoji is the data for a MessageReactionRemoveEmoji event.
type MessageReactionRemoveEmoji struct {
*MessageReaction
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're embedding MessageReaction, I think it would be a good idea to mention in the struct that UserID will not be present.
Like this:

+ // NOTE: will not be present in MessageReactionRemoveEmoji event

And add omitempty to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants