Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetPollAnswerVotes - not correct response struct #399

Closed
sealbro opened this issue Nov 8, 2024 · 0 comments
Closed

GetPollAnswerVotes - not correct response struct #399

sealbro opened this issue Nov 8, 2024 · 0 comments
Labels

Comments

@sealbro
Copy link

sealbro commented Nov 8, 2024

Describe the bug

Discord method /channels/{channel.id}/polls/{message.id}/answers/{answer_id}
returned json like

{
 "users": ...
}

Discord get-answer-voters
but now disgo is trying to parse like

[...]

I prepared a fix with wrapping user struct internally

	u := struct {
		Users *[]discord.User `json:"users"`
	}{Users: &users}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant