Missing fields in received data from API and gateway
Im building feature rich discord client and it has spacebar support. But received json data has some fields missing that are required in official discord API (latest v9).
Mostly global_name is missing everywhere, which I can easily fix in my client but there are some renamed fields, or with unexpected data.
I know some missing fields, like avatar_decoration_data, are not implemented or not planned, but at least add them with value null, so it stays fully backwards compatible with discord API.
Here is a list of all fields I found missing or wrong:
-
/api/v9/users/@me/mentions: /global_name - missing -
/api/v9/users/{my_id}/channels: /recipients/global_name - missing -
/api/v9/users/{user_id}/profile:
/user/avatar_decoration_data - missing
user/flags - missing
/user/global_name - missing
/user/primary_guild - missing -
MESSAGE_CREATE,MESSAGE_UPDATE,/api/v9/channels/{channel_id}/messages,/api/v9/guilds/{guild_id}/messages/searchand/api/v9/channels/{channel_id}/pins: /author/global_name - missing
/referenced_message - should be null only when its pointing to deleted message, otherwise remove this field /referenced_message/author/global_name - missing
/reactions/emoji/id - missing
/poll - should be removed if itsnull
/interaction - should be removed if itsnull
/mentions/username - missing
/embeds/type - missing -
READY:
/merged_members/id - should be /merged_members/user_id
/read_state/entries/mention_count - should be0, notnull
private_channels/recipient_ids - missing, haverecipientslist instead
/users/global_name - missing
/user_guild_settings/entries/channel_overrides/collapsed - missing -
TYPING_START: /member/user/global_name - missing -
GUILD_MEMBER_LIST_UPDATE: /items/member/user/global_name - missing
/item/member/user/global_name - missing -
MESSAGE_REACTION_ADD: /member/user - missing
/emoji/id - missing when its standard emoji -
MESSAGE_REACTION_REMOVE: /emoji/id - missing when its standard emoji -
GUILD_MEMBERS_CHUNK: /members/user/global_name - missing
What's the current state of this? (against spacebar.chat) global_name is missing due to us not yet supporting Pomelo-style usernames.