Open kozabrada123 opened 1 month ago
Note the following case: {"name":"👍","id":null}
{"name":"👍","id":null}
The id is set to null, since the name contains a unicode emoji
null
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":"🤔"})
{"name":"🤔"}
Note: fixing this requires a custom Updateable id() impl on Emoji, potentially generating a Snowflake id from the name
Updateable id()
Emoji
Note the following case:
{"name":"👍","id":null}
The id is set to
null
, since the name contains a unicode emojiThis 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 onEmoji
, potentially generating a Snowflake id from the name