Skip to content
New issue

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

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

Already on GitHub? # to your account

Invalid Type Error #2892

Closed
IBims1NicerTobi opened this issue Jun 7, 2024 · 3 comments · Fixed by #2893
Closed

Invalid Type Error #2892

IBims1NicerTobi opened this issue Jun 7, 2024 · 3 comments · Fixed by #2893
Labels
bug Something misbehaves or is not working. model Related to the `model` module.

Comments

@IBims1NicerTobi
Copy link

Iterating over all the messages in a server yields me an invalid type error every time. The error is:
invalid type: string "#d0334d", expected u32 at line 1 column 123537
I don't really know what to do in order to help debug this but I assume this is a deserialization error.
Branch: current

@GnomedDev GnomedDev added bug Something misbehaves or is not working. model Related to the `model` module. labels Jun 7, 2024
@GnomedDev
Copy link
Member

This is most likely caused by #2882 missing deserialize_with = "discord_colours" for MessageReaction::burst_colours. Can you confirm @jamesbt365?

@IBims1NicerTobi
Copy link
Author

Ok I am testing rn with

#[serde(rename = "burst_colors", deserialize_with = "discord_colours")]
pub burst_colours: Option<Vec<Colour>>,

in message.rs and I will report back if that fixes it :)

@jamesbt365
Copy link
Member

This is most likely caused by #2882 missing deserialize_with = "discord_colours" for MessageReaction::burst_colours. Can you confirm @jamesbt365?

I did miss rename on that one, so I'm almost certain its needed here too. will investigate shortly and open a PR for it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something misbehaves or is not working. model Related to the `model` module.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants