Skip to content

Commit

Permalink
feat!: make answer id int
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed May 7, 2024
1 parent 819d48b commit ae3572e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ var (
EndpointPoll = func(cID, mID string) string {
return EndpointChannel(cID) + "/polls/" + mID
}
EndpointPollAnswerVoters = func(cID, mID, aID string) string {
return EndpointPoll(cID, mID) + "/answers/" + aID
EndpointPollAnswerVoters = func(cID, mID string, aID int) string {
return EndpointPoll(cID, mID) + "/answers/" + strconv.Itoa(aID)
}
EndpointPollExpire = func(cID, mID string) string {
return EndpointPoll(cID, mID) + "/expire"
Expand Down
2 changes: 1 addition & 1 deletion restapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -3462,7 +3462,7 @@ func (s *Session) UserApplicationRoleConnectionUpdate(appID string, rconn *Appli
// channelID : ID of the channel.
// messageID : ID of the message.
// answerID : ID of the answer.
func (s *Session) PollAnswerVoters(channelID, messageID, answerID string) (voters []*User, err error) {
func (s *Session) PollAnswerVoters(channelID, messageID string, answerID int) (voters []*User, err error) {
endpoint := EndpointPollAnswerVoters(channelID, messageID, answerID)

var body []byte
Expand Down

0 comments on commit ae3572e

Please sign in to comment.