Skip to content

Commit

Permalink
add current intent requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
sebm253 committed Mar 21, 2024
1 parent 43f6126 commit a04c409
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions events/message_events.go
Expand Up @@ -44,7 +44,7 @@ type MessageDelete struct {
*GenericMessage
}

// GenericMessagePoll is a generic poll event
// GenericMessagePoll is a generic poll event (requires gateway.IntentGuildMessageReactions or gateway.IntentDirectMessageReactions)
type GenericMessagePoll struct {
*GenericEvent
UserID snowflake.ID
Expand All @@ -54,12 +54,12 @@ type GenericMessagePoll struct {
AnswerID int
}

// MessagePollVoteAdd indicates that a discord.User voted on a discord.Poll
// MessagePollVoteAdd indicates that a discord.User voted on a discord.Poll (requires gateway.IntentGuildMessageReactions or gateway.IntentDirectMessageReactions)
type MessagePollVoteAdd struct {
*GenericMessagePoll
}

// MessagePollVoteRemove indicates that a discord.User removed their vote on a discord.Poll
// MessagePollVoteRemove indicates that a discord.User removed their vote on a discord.Poll (requires gateway.IntentGuildMessageReactions or gateway.IntentDirectMessageReactions)
type MessagePollVoteRemove struct {
*GenericMessagePoll
}

0 comments on commit a04c409

Please sign in to comment.