Skip to content

Commit

Permalink
Implement suggestions to add information about when UserID will be mi…
Browse files Browse the repository at this point in the history
…ssing
  • Loading branch information
Suhaibinator committed Jan 3, 2025
1 parent 032d164 commit 3069ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2160,7 +2160,7 @@ type APIErrorMessage struct {

// MessageReaction stores the data for a message reaction.
type MessageReaction struct {
UserID string `json:"user_id"`
UserID string `json:"user_id,omitempty"` // NOTE: will not be present in MessageReactionRemoveEmoji event
MessageID string `json:"message_id"`
Emoji Emoji `json:"emoji"`
ChannelID string `json:"channel_id"`
Expand Down

0 comments on commit 3069ac7

Please sign in to comment.