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

Emoji id can be null with unicode emojis #531

Open
kozabrada123 opened this issue Jul 26, 2024 · 0 comments
Open

Emoji id can be null with unicode emojis #531

kozabrada123 opened this issue Jul 26, 2024 · 0 comments

Comments

@kozabrada123
Copy link
Member

kozabrada123 commented Jul 26, 2024

Note the following case: {"name":"👍","id":null}

The id is set to null, since the name contains a unicode emoji

This can (sometimes) cause deserialization errors:

07:40:41 [WARN] Failed to parse gateway event MESSAGE_REACTION_ADD (invalid type: null, expected snowflake string at line 1 column 716)

07:39:36 [WARN] Failed to parse gateway event READY_SUPPLEMENTAL (missing field id at line 1 column 5849)

(Here the emoji was in a user's custom status: {"name":"🤔"})

Note: fixing this requires a custom Updateable id() impl on Emoji, potentially generating a Snowflake id from the name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant