Skip to content

Commit

Permalink
Fix incorrect type of ID in PollAnswerCount
Browse files Browse the repository at this point in the history
  • Loading branch information
sebm253 committed May 7, 2024
1 parent abe9a44 commit 791bf45
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions discord/poll.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"time"

"github.com/disgoorg/json"
"github.com/disgoorg/snowflake/v2"
)

type Poll struct {
Expand Down Expand Up @@ -58,9 +57,9 @@ type PollResults struct {
}

type PollAnswerCount struct {
ID snowflake.ID `json:"id"`
Count int `json:"count"`
MeVoted bool `json:"me_voted"`
ID int `json:"id"`
Count int `json:"count"`
MeVoted bool `json:"me_voted"`
}

type PollLayoutType int
Expand Down

0 comments on commit 791bf45

Please sign in to comment.