Skip to content

Commit

Permalink
Changed type of Poll.Question to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Rpi-Dude committed Aug 15, 2024
1 parent 41a66e5 commit b736321
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 @@ -2374,7 +2374,7 @@ type PollResults struct {

// Poll contains all poll related data.
type Poll struct {
Question PollMedia `json:"question"`
Question string `json:"question"`
Answers []PollAnswer `json:"answers"`
AllowMultiselect bool `json:"allow_multiselect"`
LayoutType PollLayoutType `json:"layout_type,omitempty"`
Expand Down

0 comments on commit b736321

Please sign in to comment.