Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Emoji id can be null with unicode emojis #531

@kozabrada123

Description

@kozabrada123

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions