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

Add Snowflake type, which is a string with a custom UnmarshalJSON. #1482

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kagadar
Copy link

@kagadar kagadar commented Jan 12, 2024

Fixes #1394

Change all fields which are of type snowflake in the Discord API to this new type.

The Snowflake type will unmarshal all string values (some special identifiers, such as @me are used), and any valid uint64.

NOTE: Examples are currently broken by this change, but will be fixed after discussion about the core change.

Change all fields which are of type `snowflake` in the Discord API to this new type.

The Snowflake type will unmarshal all string values (some special identifiers, such as `@me` are used), and any valid uint64.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deserialization of discord template into DiscordTemplate struct fails
1 participant