Concord - C Discord API library
A Discord API wrapper library written in C
gateway.h File Reference

Generated code. More...

#include <stddef.h>
#include <stdbool.h>
#include <inttypes.h>
#include "carray.h"
#include "cog-utils.h"
#include "types.h"
#include "jsmn.h"
#include "jsmn-find.h"
#include "json-build.h"
Include dependency graph for gateway.h:

Go to the source code of this file.

Data Structures

struct  discord_activity
 
struct  discord_activities
 
struct  discord_activity_timestamps
 
struct  discord_activity_emoji
 
struct  discord_activity_party
 
struct  discord_activity_assets
 
struct  discord_activity_secrets
 
struct  discord_activity_button
 
struct  discord_activity_buttons
 
struct  discord_presence_update
 
struct  discord_client_status
 
struct  discord_presence_updates
 
struct  discord_identify
 
struct  discord_identify_connection
 
struct  discord_resume
 
struct  discord_request_guild_members
 
struct  discord_update_voice_state
 
struct  discord_ready
 
struct  discord_auto_moderation_action_execution
 
struct  discord_thread_list_sync
 
struct  discord_thread_members_update
 
struct  discord_channel_pins_update
 
struct  discord_guild_ban_add
 
struct  discord_guild_ban_remove
 
struct  discord_guild_emojis_update
 
struct  discord_guild_stickers_update
 
struct  discord_guild_integrations_update
 
struct  discord_guild_member_remove
 
struct  discord_guild_member_update
 
struct  discord_guild_members_chunk
 
struct  discord_guild_role_create
 
struct  discord_guild_role_update
 
struct  discord_guild_role_delete
 
struct  discord_guild_scheduled_event_user_add
 
struct  discord_guild_scheduled_event_user_remove
 
struct  discord_integration_delete
 
struct  discord_invite_create
 
struct  discord_invite_delete
 
struct  discord_message_delete
 
struct  discord_message_delete_bulk
 
struct  discord_message_reaction_add
 
struct  discord_message_reaction_remove
 
struct  discord_message_reaction_remove_all
 
struct  discord_message_reaction_remove_emoji
 
struct  discord_typing_start
 
struct  discord_voice_server_update
 
struct  discord_webhooks_update
 
struct  discord_session_start_limit
 

Macros

#define DISCORD_GATEWAY_GUILDS   1 << 0
 
#define DISCORD_GATEWAY_GUILD_MEMBERS   1 << 1
 
#define DISCORD_GATEWAY_GUILD_BANS   1 << 2
 
#define DISCORD_GATEWAY_GUILD_EMOJIS_AND_STICKERS   1 << 3
 
#define DISCORD_GATEWAY_GUILD_INTEGRATIONS   1 << 4
 
#define DISCORD_GATEWAY_GUILD_WEBHOOKS   1 << 5
 
#define DISCORD_GATEWAY_GUILD_INVITES   1 << 6
 
#define DISCORD_GATEWAY_GUILD_VOICE_STATES   1 << 7
 
#define DISCORD_GATEWAY_GUILD_PRESENCES   1 << 8
 
#define DISCORD_GATEWAY_GUILD_MESSAGES   1 << 9
 
#define DISCORD_GATEWAY_GUILD_MESSAGE_REACTIONS   1 << 10
 
#define DISCORD_GATEWAY_GUILD_MESSAGE_TYPING   1 << 11
 
#define DISCORD_GATEWAY_DIRECT_MESSAGES   1 << 12
 
#define DISCORD_GATEWAY_DIRECT_MESSAGE_REACTIONS   1 << 13
 
#define DISCORD_GATEWAY_DIRECT_MESSAGE_TYPING   1 << 14
 
#define DISCORD_GATEWAY_MESSAGE_CONTENT   1 << 15
 
#define DISCORD_GATEWAY_GUILD_SCHEDULED_EVENTS   1 << 16
 
#define DISCORD_GATEWAY_AUTO_MODERATION_CONFIGURATION   1 << 20
 
#define DISCORD_GATEWAY_AUTO_MODERATION_EXECUTION   1 << 21
 
#define DISCORD_ACTIVITY_INSTANCE   1 << 0
 
#define DISCORD_ACTIVITY_JOIN   1 << 1
 
#define DISCORD_ACTIVITY_SPECTATE   1 << 2
 
#define DISCORD_ACTIVITY_JOIN_REQUEST   1 << 3
 
#define DISCORD_ACTIVITY_SYNC   1 << 4
 
#define DISCORD_ACTIVITY_PLAY   1 << 5
 
#define DISCORD_ACTIVITY_PARTY_PRIVACY_FRIENDS   1 << 6
 
#define DISCORD_ACTIVITY_PARTY_PRIVACY_VOICE_CHANNEL   1 << 7
 
#define DISCORD_ACTIVITY_EMBEDDED   1 << 8
 
#define JSMN_STRICT
 
#define JSMN_HEADER
 
#define JSONB_HEADER
 

Enumerations

enum  discord_gateway_close_opcodes {
  DISCORD_GATEWAY_CLOSE_REASON_UNKNOWN_ERROR = 4000 , DISCORD_GATEWAY_CLOSE_REASON_UNKNOWN_OPCODE = 4001 , DISCORD_GATEWAY_CLOSE_REASON_DECODE_ERROR = 4002 , DISCORD_GATEWAY_CLOSE_REASON_NOT_AUTHENTICATED = 4003 ,
  DISCORD_GATEWAY_CLOSE_REASON_AUTHENTICATION_FAILED = 4004 , DISCORD_GATEWAY_CLOSE_REASON_ALREADY_AUTHENTICATED = 4005 , DISCORD_GATEWAY_CLOSE_REASON_INVALID_SEQUENCE = 4007 , DISCORD_GATEWAY_CLOSE_REASON_RATE_LIMITED = 4008 ,
  DISCORD_GATEWAY_CLOSE_REASON_SESSION_TIMED_OUT = 4009 , DISCORD_GATEWAY_CLOSE_REASON_INVALID_SHARD = 4010 , DISCORD_GATEWAY_CLOSE_REASON_SHARDING_REQUIRED = 4011 , DISCORD_GATEWAY_CLOSE_REASON_INVALID_API_VERSION = 4012 ,
  DISCORD_GATEWAY_CLOSE_REASON_INVALID_INTENTS = 4013 , DISCORD_GATEWAY_CLOSE_REASON_DISALLOWED_INTENTS = 4014 , DISCORD_GATEWAY_CLOSE_REASON_RECONNECT = 4900
}
 
enum  discord_gateway_opcodes {
  DISCORD_GATEWAY_DISPATCH = 0 , DISCORD_GATEWAY_HEARTBEAT = 1 , DISCORD_GATEWAY_IDENTIFY = 2 , DISCORD_GATEWAY_PRESENCE_UPDATE = 3 ,
  DISCORD_GATEWAY_VOICE_STATE_UPDATE = 4 , DISCORD_GATEWAY_RESUME = 6 , DISCORD_GATEWAY_RECONNECT = 7 , DISCORD_GATEWAY_REQUEST_GUILD_MEMBERS = 8 ,
  DISCORD_GATEWAY_INVALID_SESSION = 9 , DISCORD_GATEWAY_HELLO = 10 , DISCORD_GATEWAY_HEARTBEAT_ACK = 11
}
 
enum  discord_activity_types {
  DISCORD_ACTIVITY_GAME = 0 , DISCORD_ACTIVITY_STREAMING = 1 , DISCORD_ACTIVITY_LISTENING = 2 , DISCORD_ACTIVITY_WATCHING = 3 ,
  DISCORD_ACTIVITY_CUSTOM = 4 , DISCORD_ACTIVITY_COMPETING = 5
}
 

Functions

void discord_presence_update_init (struct discord_presence_update *self)
 
void discord_presence_update_cleanup (struct discord_presence_update *self)
 
void discord_identify_init (struct discord_identify *self)
 
void discord_identify_cleanup (struct discord_identify *self)
 
void discord_resume_init (struct discord_resume *self)
 
void discord_resume_cleanup (struct discord_resume *self)
 
void discord_request_guild_members_init (struct discord_request_guild_members *self)
 
void discord_request_guild_members_cleanup (struct discord_request_guild_members *self)
 
void discord_update_voice_state_init (struct discord_update_voice_state *self)
 
void discord_update_voice_state_cleanup (struct discord_update_voice_state *self)
 
void discord_ready_init (struct discord_ready *self)
 
void discord_ready_cleanup (struct discord_ready *self)
 
void discord_auto_moderation_action_execution_init (struct discord_auto_moderation_action_execution *self)
 
void discord_auto_moderation_action_execution_cleanup (struct discord_auto_moderation_action_execution *self)
 
void discord_thread_list_sync_init (struct discord_thread_list_sync *self)
 
void discord_thread_list_sync_cleanup (struct discord_thread_list_sync *self)
 
void discord_thread_members_update_init (struct discord_thread_members_update *self)
 
void discord_thread_members_update_cleanup (struct discord_thread_members_update *self)
 
void discord_channel_pins_update_init (struct discord_channel_pins_update *self)
 
void discord_channel_pins_update_cleanup (struct discord_channel_pins_update *self)
 
void discord_guild_ban_add_init (struct discord_guild_ban_add *self)
 
void discord_guild_ban_add_cleanup (struct discord_guild_ban_add *self)
 
void discord_guild_ban_remove_init (struct discord_guild_ban_remove *self)
 
void discord_guild_ban_remove_cleanup (struct discord_guild_ban_remove *self)
 
void discord_guild_emojis_update_init (struct discord_guild_emojis_update *self)
 
void discord_guild_emojis_update_cleanup (struct discord_guild_emojis_update *self)
 
void discord_guild_stickers_update_init (struct discord_guild_stickers_update *self)
 
void discord_guild_stickers_update_cleanup (struct discord_guild_stickers_update *self)
 
void discord_guild_integrations_update_init (struct discord_guild_integrations_update *self)
 
void discord_guild_integrations_update_cleanup (struct discord_guild_integrations_update *self)
 
void discord_guild_member_remove_init (struct discord_guild_member_remove *self)
 
void discord_guild_member_remove_cleanup (struct discord_guild_member_remove *self)
 
void discord_guild_member_update_init (struct discord_guild_member_update *self)
 
void discord_guild_member_update_cleanup (struct discord_guild_member_update *self)
 
void discord_guild_members_chunk_init (struct discord_guild_members_chunk *self)
 
void discord_guild_members_chunk_cleanup (struct discord_guild_members_chunk *self)
 
void discord_guild_role_create_init (struct discord_guild_role_create *self)
 
void discord_guild_role_create_cleanup (struct discord_guild_role_create *self)
 
void discord_guild_role_update_init (struct discord_guild_role_update *self)
 
void discord_guild_role_update_cleanup (struct discord_guild_role_update *self)
 
void discord_guild_role_delete_init (struct discord_guild_role_delete *self)
 
void discord_guild_role_delete_cleanup (struct discord_guild_role_delete *self)
 
void discord_guild_scheduled_event_user_add_init (struct discord_guild_scheduled_event_user_add *self)
 
void discord_guild_scheduled_event_user_add_cleanup (struct discord_guild_scheduled_event_user_add *self)
 
void discord_guild_scheduled_event_user_remove_init (struct discord_guild_scheduled_event_user_remove *self)
 
void discord_guild_scheduled_event_user_remove_cleanup (struct discord_guild_scheduled_event_user_remove *self)
 
void discord_integration_delete_init (struct discord_integration_delete *self)
 
void discord_integration_delete_cleanup (struct discord_integration_delete *self)
 
void discord_invite_create_init (struct discord_invite_create *self)
 
void discord_invite_create_cleanup (struct discord_invite_create *self)
 
void discord_invite_delete_init (struct discord_invite_delete *self)
 
void discord_invite_delete_cleanup (struct discord_invite_delete *self)
 
void discord_message_delete_init (struct discord_message_delete *self)
 
void discord_message_delete_cleanup (struct discord_message_delete *self)
 
void discord_message_delete_bulk_init (struct discord_message_delete_bulk *self)
 
void discord_message_delete_bulk_cleanup (struct discord_message_delete_bulk *self)
 
void discord_message_reaction_add_init (struct discord_message_reaction_add *self)
 
void discord_message_reaction_add_cleanup (struct discord_message_reaction_add *self)
 
void discord_message_reaction_remove_init (struct discord_message_reaction_remove *self)
 
void discord_message_reaction_remove_cleanup (struct discord_message_reaction_remove *self)
 
void discord_message_reaction_remove_all_init (struct discord_message_reaction_remove_all *self)
 
void discord_message_reaction_remove_all_cleanup (struct discord_message_reaction_remove_all *self)
 
void discord_message_reaction_remove_emoji_init (struct discord_message_reaction_remove_emoji *self)
 
void discord_message_reaction_remove_emoji_cleanup (struct discord_message_reaction_remove_emoji *self)
 
void discord_typing_start_init (struct discord_typing_start *self)
 
void discord_typing_start_cleanup (struct discord_typing_start *self)
 
void discord_voice_server_update_init (struct discord_voice_server_update *self)
 
void discord_voice_server_update_cleanup (struct discord_voice_server_update *self)
 
void discord_webhooks_update_init (struct discord_webhooks_update *self)
 
void discord_webhooks_update_cleanup (struct discord_webhooks_update *self)
 
void discord_session_start_limit_init (struct discord_session_start_limit *self)
 
void discord_session_start_limit_cleanup (struct discord_session_start_limit *self)
 
long discord_presence_update_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_presence_update *self)
 
size_t discord_presence_update_from_json (const char buf[], size_t size, struct discord_presence_update *self)
 
long discord_ready_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_ready *self)
 
size_t discord_ready_from_json (const char buf[], size_t size, struct discord_ready *self)
 
long discord_auto_moderation_action_execution_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_auto_moderation_action_execution *self)
 
size_t discord_auto_moderation_action_execution_from_json (const char buf[], size_t size, struct discord_auto_moderation_action_execution *self)
 
long discord_thread_list_sync_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_thread_list_sync *self)
 
size_t discord_thread_list_sync_from_json (const char buf[], size_t size, struct discord_thread_list_sync *self)
 
long discord_thread_members_update_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_thread_members_update *self)
 
size_t discord_thread_members_update_from_json (const char buf[], size_t size, struct discord_thread_members_update *self)
 
long discord_channel_pins_update_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_channel_pins_update *self)
 
size_t discord_channel_pins_update_from_json (const char buf[], size_t size, struct discord_channel_pins_update *self)
 
long discord_guild_ban_add_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_guild_ban_add *self)
 
size_t discord_guild_ban_add_from_json (const char buf[], size_t size, struct discord_guild_ban_add *self)
 
long discord_guild_ban_remove_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_guild_ban_remove *self)
 
size_t discord_guild_ban_remove_from_json (const char buf[], size_t size, struct discord_guild_ban_remove *self)
 
long discord_guild_emojis_update_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_guild_emojis_update *self)
 
size_t discord_guild_emojis_update_from_json (const char buf[], size_t size, struct discord_guild_emojis_update *self)
 
long discord_guild_stickers_update_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_guild_stickers_update *self)
 
size_t discord_guild_stickers_update_from_json (const char buf[], size_t size, struct discord_guild_stickers_update *self)
 
long discord_guild_integrations_update_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_guild_integrations_update *self)
 
size_t discord_guild_integrations_update_from_json (const char buf[], size_t size, struct discord_guild_integrations_update *self)
 
long discord_guild_member_remove_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_guild_member_remove *self)
 
size_t discord_guild_member_remove_from_json (const char buf[], size_t size, struct discord_guild_member_remove *self)
 
long discord_guild_member_update_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_guild_member_update *self)
 
size_t discord_guild_member_update_from_json (const char buf[], size_t size, struct discord_guild_member_update *self)
 
long discord_guild_members_chunk_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_guild_members_chunk *self)
 
size_t discord_guild_members_chunk_from_json (const char buf[], size_t size, struct discord_guild_members_chunk *self)
 
long discord_guild_role_create_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_guild_role_create *self)
 
size_t discord_guild_role_create_from_json (const char buf[], size_t size, struct discord_guild_role_create *self)
 
long discord_guild_role_update_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_guild_role_update *self)
 
size_t discord_guild_role_update_from_json (const char buf[], size_t size, struct discord_guild_role_update *self)
 
long discord_guild_role_delete_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_guild_role_delete *self)
 
size_t discord_guild_role_delete_from_json (const char buf[], size_t size, struct discord_guild_role_delete *self)
 
long discord_guild_scheduled_event_user_add_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_guild_scheduled_event_user_add *self)
 
size_t discord_guild_scheduled_event_user_add_from_json (const char buf[], size_t size, struct discord_guild_scheduled_event_user_add *self)
 
long discord_guild_scheduled_event_user_remove_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_guild_scheduled_event_user_remove *self)
 
size_t discord_guild_scheduled_event_user_remove_from_json (const char buf[], size_t size, struct discord_guild_scheduled_event_user_remove *self)
 
long discord_integration_delete_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_integration_delete *self)
 
size_t discord_integration_delete_from_json (const char buf[], size_t size, struct discord_integration_delete *self)
 
long discord_invite_create_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_invite_create *self)
 
size_t discord_invite_create_from_json (const char buf[], size_t size, struct discord_invite_create *self)
 
long discord_invite_delete_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_invite_delete *self)
 
size_t discord_invite_delete_from_json (const char buf[], size_t size, struct discord_invite_delete *self)
 
long discord_message_delete_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_message_delete *self)
 
size_t discord_message_delete_from_json (const char buf[], size_t size, struct discord_message_delete *self)
 
long discord_message_delete_bulk_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_message_delete_bulk *self)
 
size_t discord_message_delete_bulk_from_json (const char buf[], size_t size, struct discord_message_delete_bulk *self)
 
long discord_message_reaction_add_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_message_reaction_add *self)
 
size_t discord_message_reaction_add_from_json (const char buf[], size_t size, struct discord_message_reaction_add *self)
 
long discord_message_reaction_remove_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_message_reaction_remove *self)
 
size_t discord_message_reaction_remove_from_json (const char buf[], size_t size, struct discord_message_reaction_remove *self)
 
long discord_message_reaction_remove_all_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_message_reaction_remove_all *self)
 
size_t discord_message_reaction_remove_all_from_json (const char buf[], size_t size, struct discord_message_reaction_remove_all *self)
 
long discord_message_reaction_remove_emoji_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_message_reaction_remove_emoji *self)
 
size_t discord_message_reaction_remove_emoji_from_json (const char buf[], size_t size, struct discord_message_reaction_remove_emoji *self)
 
long discord_typing_start_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_typing_start *self)
 
size_t discord_typing_start_from_json (const char buf[], size_t size, struct discord_typing_start *self)
 
long discord_voice_server_update_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_voice_server_update *self)
 
size_t discord_voice_server_update_from_json (const char buf[], size_t size, struct discord_voice_server_update *self)
 
long discord_webhooks_update_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_webhooks_update *self)
 
size_t discord_webhooks_update_from_json (const char buf[], size_t size, struct discord_webhooks_update *self)
 
long discord_session_start_limit_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_session_start_limit *self)
 
size_t discord_session_start_limit_from_json (const char buf[], size_t size, struct discord_session_start_limit *self)
 
jsonbcode discord_presence_update_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_presence_update *self)
 
size_t discord_presence_update_to_json (char buf[], size_t size, const struct discord_presence_update *self)
 
jsonbcode discord_identify_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_identify *self)
 
size_t discord_identify_to_json (char buf[], size_t size, const struct discord_identify *self)
 
jsonbcode discord_resume_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_resume *self)
 
size_t discord_resume_to_json (char buf[], size_t size, const struct discord_resume *self)
 
jsonbcode discord_request_guild_members_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_request_guild_members *self)
 
size_t discord_request_guild_members_to_json (char buf[], size_t size, const struct discord_request_guild_members *self)
 
jsonbcode discord_update_voice_state_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_update_voice_state *self)
 
size_t discord_update_voice_state_to_json (char buf[], size_t size, const struct discord_update_voice_state *self)
 

Detailed Description

Generated code.

Author
Cogmasters

Macro Definition Documentation

◆ JSMN_STRICT

#define JSMN_STRICT

◆ JSMN_HEADER

#define JSMN_HEADER

◆ JSONB_HEADER

#define JSONB_HEADER

Enumeration Type Documentation

◆ discord_gateway_close_opcodes

Enumerator
DISCORD_GATEWAY_CLOSE_REASON_UNKNOWN_ERROR 
DISCORD_GATEWAY_CLOSE_REASON_UNKNOWN_OPCODE 
DISCORD_GATEWAY_CLOSE_REASON_DECODE_ERROR 
DISCORD_GATEWAY_CLOSE_REASON_NOT_AUTHENTICATED 
DISCORD_GATEWAY_CLOSE_REASON_AUTHENTICATION_FAILED 
DISCORD_GATEWAY_CLOSE_REASON_ALREADY_AUTHENTICATED 
DISCORD_GATEWAY_CLOSE_REASON_INVALID_SEQUENCE 
DISCORD_GATEWAY_CLOSE_REASON_RATE_LIMITED 
DISCORD_GATEWAY_CLOSE_REASON_SESSION_TIMED_OUT 
DISCORD_GATEWAY_CLOSE_REASON_INVALID_SHARD 
DISCORD_GATEWAY_CLOSE_REASON_SHARDING_REQUIRED 
DISCORD_GATEWAY_CLOSE_REASON_INVALID_API_VERSION 
DISCORD_GATEWAY_CLOSE_REASON_INVALID_INTENTS 
DISCORD_GATEWAY_CLOSE_REASON_DISALLOWED_INTENTS 
DISCORD_GATEWAY_CLOSE_REASON_RECONNECT 

◆ discord_gateway_opcodes

Enumerator
DISCORD_GATEWAY_DISPATCH 
DISCORD_GATEWAY_HEARTBEAT 
DISCORD_GATEWAY_IDENTIFY 
DISCORD_GATEWAY_PRESENCE_UPDATE 
DISCORD_GATEWAY_VOICE_STATE_UPDATE 
DISCORD_GATEWAY_RESUME 
DISCORD_GATEWAY_RECONNECT 
DISCORD_GATEWAY_REQUEST_GUILD_MEMBERS 
DISCORD_GATEWAY_INVALID_SESSION 
DISCORD_GATEWAY_HELLO 
DISCORD_GATEWAY_HEARTBEAT_ACK 

◆ discord_activity_types

Enumerator
DISCORD_ACTIVITY_GAME 

Format: "Playing {name}"

DISCORD_ACTIVITY_STREAMING 

Format: "Streaming {details}"

DISCORD_ACTIVITY_LISTENING 

Format: "Listening to {name}"

DISCORD_ACTIVITY_WATCHING 

Format: "Watching {name}"

DISCORD_ACTIVITY_CUSTOM 

Format: "{emoji} {name}"

DISCORD_ACTIVITY_COMPETING 

Format: "Competing in {name}"

Function Documentation

◆ discord_presence_update_init()

void discord_presence_update_init ( struct discord_presence_update self)

◆ discord_presence_update_cleanup()

void discord_presence_update_cleanup ( struct discord_presence_update self)

◆ discord_identify_init()

void discord_identify_init ( struct discord_identify self)

◆ discord_identify_cleanup()

void discord_identify_cleanup ( struct discord_identify self)

◆ discord_resume_init()

void discord_resume_init ( struct discord_resume self)

◆ discord_resume_cleanup()

void discord_resume_cleanup ( struct discord_resume self)

◆ discord_request_guild_members_init()

void discord_request_guild_members_init ( struct discord_request_guild_members self)

◆ discord_request_guild_members_cleanup()

void discord_request_guild_members_cleanup ( struct discord_request_guild_members self)

◆ discord_update_voice_state_init()

void discord_update_voice_state_init ( struct discord_update_voice_state self)

◆ discord_update_voice_state_cleanup()

void discord_update_voice_state_cleanup ( struct discord_update_voice_state self)

◆ discord_ready_init()

void discord_ready_init ( struct discord_ready self)

◆ discord_ready_cleanup()

void discord_ready_cleanup ( struct discord_ready self)

◆ discord_auto_moderation_action_execution_init()

void discord_auto_moderation_action_execution_init ( struct discord_auto_moderation_action_execution self)

◆ discord_auto_moderation_action_execution_cleanup()

void discord_auto_moderation_action_execution_cleanup ( struct discord_auto_moderation_action_execution self)

◆ discord_thread_list_sync_init()

void discord_thread_list_sync_init ( struct discord_thread_list_sync self)

◆ discord_thread_list_sync_cleanup()

void discord_thread_list_sync_cleanup ( struct discord_thread_list_sync self)

◆ discord_thread_members_update_init()

void discord_thread_members_update_init ( struct discord_thread_members_update self)

◆ discord_thread_members_update_cleanup()

void discord_thread_members_update_cleanup ( struct discord_thread_members_update self)

◆ discord_channel_pins_update_init()

void discord_channel_pins_update_init ( struct discord_channel_pins_update self)

◆ discord_channel_pins_update_cleanup()

void discord_channel_pins_update_cleanup ( struct discord_channel_pins_update self)

◆ discord_guild_ban_add_init()

void discord_guild_ban_add_init ( struct discord_guild_ban_add self)

◆ discord_guild_ban_add_cleanup()

void discord_guild_ban_add_cleanup ( struct discord_guild_ban_add self)

◆ discord_guild_ban_remove_init()

void discord_guild_ban_remove_init ( struct discord_guild_ban_remove self)

◆ discord_guild_ban_remove_cleanup()

void discord_guild_ban_remove_cleanup ( struct discord_guild_ban_remove self)

◆ discord_guild_emojis_update_init()

void discord_guild_emojis_update_init ( struct discord_guild_emojis_update self)

◆ discord_guild_emojis_update_cleanup()

void discord_guild_emojis_update_cleanup ( struct discord_guild_emojis_update self)

◆ discord_guild_stickers_update_init()

void discord_guild_stickers_update_init ( struct discord_guild_stickers_update self)

◆ discord_guild_stickers_update_cleanup()

void discord_guild_stickers_update_cleanup ( struct discord_guild_stickers_update self)

◆ discord_guild_integrations_update_init()

void discord_guild_integrations_update_init ( struct discord_guild_integrations_update self)

◆ discord_guild_integrations_update_cleanup()

void discord_guild_integrations_update_cleanup ( struct discord_guild_integrations_update self)

◆ discord_guild_member_remove_init()

void discord_guild_member_remove_init ( struct discord_guild_member_remove self)

◆ discord_guild_member_remove_cleanup()

void discord_guild_member_remove_cleanup ( struct discord_guild_member_remove self)

◆ discord_guild_member_update_init()

void discord_guild_member_update_init ( struct discord_guild_member_update self)

◆ discord_guild_member_update_cleanup()

void discord_guild_member_update_cleanup ( struct discord_guild_member_update self)

◆ discord_guild_members_chunk_init()

void discord_guild_members_chunk_init ( struct discord_guild_members_chunk self)

◆ discord_guild_members_chunk_cleanup()

void discord_guild_members_chunk_cleanup ( struct discord_guild_members_chunk self)

◆ discord_guild_role_create_init()

void discord_guild_role_create_init ( struct discord_guild_role_create self)

◆ discord_guild_role_create_cleanup()

void discord_guild_role_create_cleanup ( struct discord_guild_role_create self)

◆ discord_guild_role_update_init()

void discord_guild_role_update_init ( struct discord_guild_role_update self)

◆ discord_guild_role_update_cleanup()

void discord_guild_role_update_cleanup ( struct discord_guild_role_update self)

◆ discord_guild_role_delete_init()

void discord_guild_role_delete_init ( struct discord_guild_role_delete self)

◆ discord_guild_role_delete_cleanup()

void discord_guild_role_delete_cleanup ( struct discord_guild_role_delete self)

◆ discord_guild_scheduled_event_user_add_init()

void discord_guild_scheduled_event_user_add_init ( struct discord_guild_scheduled_event_user_add self)

◆ discord_guild_scheduled_event_user_add_cleanup()

void discord_guild_scheduled_event_user_add_cleanup ( struct discord_guild_scheduled_event_user_add self)

◆ discord_guild_scheduled_event_user_remove_init()

void discord_guild_scheduled_event_user_remove_init ( struct discord_guild_scheduled_event_user_remove self)

◆ discord_guild_scheduled_event_user_remove_cleanup()

void discord_guild_scheduled_event_user_remove_cleanup ( struct discord_guild_scheduled_event_user_remove self)

◆ discord_integration_delete_init()

void discord_integration_delete_init ( struct discord_integration_delete self)

◆ discord_integration_delete_cleanup()

void discord_integration_delete_cleanup ( struct discord_integration_delete self)

◆ discord_invite_create_init()

void discord_invite_create_init ( struct discord_invite_create self)

◆ discord_invite_create_cleanup()

void discord_invite_create_cleanup ( struct discord_invite_create self)

◆ discord_invite_delete_init()

void discord_invite_delete_init ( struct discord_invite_delete self)

◆ discord_invite_delete_cleanup()

void discord_invite_delete_cleanup ( struct discord_invite_delete self)

◆ discord_message_delete_init()

void discord_message_delete_init ( struct discord_message_delete self)

◆ discord_message_delete_cleanup()

void discord_message_delete_cleanup ( struct discord_message_delete self)

◆ discord_message_delete_bulk_init()

void discord_message_delete_bulk_init ( struct discord_message_delete_bulk self)

◆ discord_message_delete_bulk_cleanup()

void discord_message_delete_bulk_cleanup ( struct discord_message_delete_bulk self)

◆ discord_message_reaction_add_init()

void discord_message_reaction_add_init ( struct discord_message_reaction_add self)

◆ discord_message_reaction_add_cleanup()

void discord_message_reaction_add_cleanup ( struct discord_message_reaction_add self)

◆ discord_message_reaction_remove_init()

void discord_message_reaction_remove_init ( struct discord_message_reaction_remove self)

◆ discord_message_reaction_remove_cleanup()

void discord_message_reaction_remove_cleanup ( struct discord_message_reaction_remove self)

◆ discord_message_reaction_remove_all_init()

void discord_message_reaction_remove_all_init ( struct discord_message_reaction_remove_all self)

◆ discord_message_reaction_remove_all_cleanup()

void discord_message_reaction_remove_all_cleanup ( struct discord_message_reaction_remove_all self)

◆ discord_message_reaction_remove_emoji_init()

void discord_message_reaction_remove_emoji_init ( struct discord_message_reaction_remove_emoji self)

◆ discord_message_reaction_remove_emoji_cleanup()

void discord_message_reaction_remove_emoji_cleanup ( struct discord_message_reaction_remove_emoji self)

◆ discord_typing_start_init()

void discord_typing_start_init ( struct discord_typing_start self)

◆ discord_typing_start_cleanup()

void discord_typing_start_cleanup ( struct discord_typing_start self)

◆ discord_voice_server_update_init()

void discord_voice_server_update_init ( struct discord_voice_server_update self)

◆ discord_voice_server_update_cleanup()

void discord_voice_server_update_cleanup ( struct discord_voice_server_update self)

◆ discord_webhooks_update_init()

void discord_webhooks_update_init ( struct discord_webhooks_update self)

◆ discord_webhooks_update_cleanup()

void discord_webhooks_update_cleanup ( struct discord_webhooks_update self)

◆ discord_session_start_limit_init()

void discord_session_start_limit_init ( struct discord_session_start_limit self)

◆ discord_session_start_limit_cleanup()

void discord_session_start_limit_cleanup ( struct discord_session_start_limit self)

◆ discord_presence_update_from_jsmnf()

long discord_presence_update_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_presence_update self 
)

◆ discord_presence_update_from_json()

size_t discord_presence_update_from_json ( const char  buf[],
size_t  size,
struct discord_presence_update self 
)

◆ discord_ready_from_jsmnf()

long discord_ready_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_ready self 
)

◆ discord_ready_from_json()

size_t discord_ready_from_json ( const char  buf[],
size_t  size,
struct discord_ready self 
)

◆ discord_auto_moderation_action_execution_from_jsmnf()

long discord_auto_moderation_action_execution_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_auto_moderation_action_execution self 
)

◆ discord_auto_moderation_action_execution_from_json()

size_t discord_auto_moderation_action_execution_from_json ( const char  buf[],
size_t  size,
struct discord_auto_moderation_action_execution self 
)

◆ discord_thread_list_sync_from_jsmnf()

long discord_thread_list_sync_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_thread_list_sync self 
)

◆ discord_thread_list_sync_from_json()

size_t discord_thread_list_sync_from_json ( const char  buf[],
size_t  size,
struct discord_thread_list_sync self 
)

◆ discord_thread_members_update_from_jsmnf()

long discord_thread_members_update_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_thread_members_update self 
)

◆ discord_thread_members_update_from_json()

size_t discord_thread_members_update_from_json ( const char  buf[],
size_t  size,
struct discord_thread_members_update self 
)

◆ discord_channel_pins_update_from_jsmnf()

long discord_channel_pins_update_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_channel_pins_update self 
)

◆ discord_channel_pins_update_from_json()

size_t discord_channel_pins_update_from_json ( const char  buf[],
size_t  size,
struct discord_channel_pins_update self 
)

◆ discord_guild_ban_add_from_jsmnf()

long discord_guild_ban_add_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_guild_ban_add self 
)

◆ discord_guild_ban_add_from_json()

size_t discord_guild_ban_add_from_json ( const char  buf[],
size_t  size,
struct discord_guild_ban_add self 
)

◆ discord_guild_ban_remove_from_jsmnf()

long discord_guild_ban_remove_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_guild_ban_remove self 
)

◆ discord_guild_ban_remove_from_json()

size_t discord_guild_ban_remove_from_json ( const char  buf[],
size_t  size,
struct discord_guild_ban_remove self 
)

◆ discord_guild_emojis_update_from_jsmnf()

long discord_guild_emojis_update_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_guild_emojis_update self 
)

◆ discord_guild_emojis_update_from_json()

size_t discord_guild_emojis_update_from_json ( const char  buf[],
size_t  size,
struct discord_guild_emojis_update self 
)

◆ discord_guild_stickers_update_from_jsmnf()

long discord_guild_stickers_update_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_guild_stickers_update self 
)

◆ discord_guild_stickers_update_from_json()

size_t discord_guild_stickers_update_from_json ( const char  buf[],
size_t  size,
struct discord_guild_stickers_update self 
)

◆ discord_guild_integrations_update_from_jsmnf()

long discord_guild_integrations_update_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_guild_integrations_update self 
)

◆ discord_guild_integrations_update_from_json()

size_t discord_guild_integrations_update_from_json ( const char  buf[],
size_t  size,
struct discord_guild_integrations_update self 
)

◆ discord_guild_member_remove_from_jsmnf()

long discord_guild_member_remove_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_guild_member_remove self 
)

◆ discord_guild_member_remove_from_json()

size_t discord_guild_member_remove_from_json ( const char  buf[],
size_t  size,
struct discord_guild_member_remove self 
)

◆ discord_guild_member_update_from_jsmnf()

long discord_guild_member_update_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_guild_member_update self 
)

◆ discord_guild_member_update_from_json()

size_t discord_guild_member_update_from_json ( const char  buf[],
size_t  size,
struct discord_guild_member_update self 
)

◆ discord_guild_members_chunk_from_jsmnf()

long discord_guild_members_chunk_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_guild_members_chunk self 
)

◆ discord_guild_members_chunk_from_json()

size_t discord_guild_members_chunk_from_json ( const char  buf[],
size_t  size,
struct discord_guild_members_chunk self 
)

◆ discord_guild_role_create_from_jsmnf()

long discord_guild_role_create_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_guild_role_create self 
)

◆ discord_guild_role_create_from_json()

size_t discord_guild_role_create_from_json ( const char  buf[],
size_t  size,
struct discord_guild_role_create self 
)

◆ discord_guild_role_update_from_jsmnf()

long discord_guild_role_update_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_guild_role_update self 
)

◆ discord_guild_role_update_from_json()

size_t discord_guild_role_update_from_json ( const char  buf[],
size_t  size,
struct discord_guild_role_update self 
)

◆ discord_guild_role_delete_from_jsmnf()

long discord_guild_role_delete_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_guild_role_delete self 
)

◆ discord_guild_role_delete_from_json()

size_t discord_guild_role_delete_from_json ( const char  buf[],
size_t  size,
struct discord_guild_role_delete self 
)

◆ discord_guild_scheduled_event_user_add_from_jsmnf()

long discord_guild_scheduled_event_user_add_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_guild_scheduled_event_user_add self 
)

◆ discord_guild_scheduled_event_user_add_from_json()

size_t discord_guild_scheduled_event_user_add_from_json ( const char  buf[],
size_t  size,
struct discord_guild_scheduled_event_user_add self 
)

◆ discord_guild_scheduled_event_user_remove_from_jsmnf()

long discord_guild_scheduled_event_user_remove_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_guild_scheduled_event_user_remove self 
)

◆ discord_guild_scheduled_event_user_remove_from_json()

size_t discord_guild_scheduled_event_user_remove_from_json ( const char  buf[],
size_t  size,
struct discord_guild_scheduled_event_user_remove self 
)

◆ discord_integration_delete_from_jsmnf()

long discord_integration_delete_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_integration_delete self 
)

◆ discord_integration_delete_from_json()

size_t discord_integration_delete_from_json ( const char  buf[],
size_t  size,
struct discord_integration_delete self 
)

◆ discord_invite_create_from_jsmnf()

long discord_invite_create_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_invite_create self 
)

◆ discord_invite_create_from_json()

size_t discord_invite_create_from_json ( const char  buf[],
size_t  size,
struct discord_invite_create self 
)

◆ discord_invite_delete_from_jsmnf()

long discord_invite_delete_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_invite_delete self 
)

◆ discord_invite_delete_from_json()

size_t discord_invite_delete_from_json ( const char  buf[],
size_t  size,
struct discord_invite_delete self 
)

◆ discord_message_delete_from_jsmnf()

long discord_message_delete_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_message_delete self 
)

◆ discord_message_delete_from_json()

size_t discord_message_delete_from_json ( const char  buf[],
size_t  size,
struct discord_message_delete self 
)

◆ discord_message_delete_bulk_from_jsmnf()

long discord_message_delete_bulk_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_message_delete_bulk self 
)

◆ discord_message_delete_bulk_from_json()

size_t discord_message_delete_bulk_from_json ( const char  buf[],
size_t  size,
struct discord_message_delete_bulk self 
)

◆ discord_message_reaction_add_from_jsmnf()

long discord_message_reaction_add_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_message_reaction_add self 
)

◆ discord_message_reaction_add_from_json()

size_t discord_message_reaction_add_from_json ( const char  buf[],
size_t  size,
struct discord_message_reaction_add self 
)

◆ discord_message_reaction_remove_from_jsmnf()

long discord_message_reaction_remove_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_message_reaction_remove self 
)

◆ discord_message_reaction_remove_from_json()

size_t discord_message_reaction_remove_from_json ( const char  buf[],
size_t  size,
struct discord_message_reaction_remove self 
)

◆ discord_message_reaction_remove_all_from_jsmnf()

long discord_message_reaction_remove_all_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_message_reaction_remove_all self 
)

◆ discord_message_reaction_remove_all_from_json()

size_t discord_message_reaction_remove_all_from_json ( const char  buf[],
size_t  size,
struct discord_message_reaction_remove_all self 
)

◆ discord_message_reaction_remove_emoji_from_jsmnf()

long discord_message_reaction_remove_emoji_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_message_reaction_remove_emoji self 
)

◆ discord_message_reaction_remove_emoji_from_json()

size_t discord_message_reaction_remove_emoji_from_json ( const char  buf[],
size_t  size,
struct discord_message_reaction_remove_emoji self 
)

◆ discord_typing_start_from_jsmnf()

long discord_typing_start_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_typing_start self 
)

◆ discord_typing_start_from_json()

size_t discord_typing_start_from_json ( const char  buf[],
size_t  size,
struct discord_typing_start self 
)

◆ discord_voice_server_update_from_jsmnf()

long discord_voice_server_update_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_voice_server_update self 
)

◆ discord_voice_server_update_from_json()

size_t discord_voice_server_update_from_json ( const char  buf[],
size_t  size,
struct discord_voice_server_update self 
)

◆ discord_webhooks_update_from_jsmnf()

long discord_webhooks_update_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_webhooks_update self 
)

◆ discord_webhooks_update_from_json()

size_t discord_webhooks_update_from_json ( const char  buf[],
size_t  size,
struct discord_webhooks_update self 
)

◆ discord_session_start_limit_from_jsmnf()

long discord_session_start_limit_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_session_start_limit self 
)

◆ discord_session_start_limit_from_json()

size_t discord_session_start_limit_from_json ( const char  buf[],
size_t  size,
struct discord_session_start_limit self 
)

◆ discord_presence_update_to_jsonb()

jsonbcode discord_presence_update_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_presence_update self 
)

◆ discord_presence_update_to_json()

size_t discord_presence_update_to_json ( char  buf[],
size_t  size,
const struct discord_presence_update self 
)

◆ discord_identify_to_jsonb()

jsonbcode discord_identify_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_identify self 
)

◆ discord_identify_to_json()

size_t discord_identify_to_json ( char  buf[],
size_t  size,
const struct discord_identify self 
)

◆ discord_resume_to_jsonb()

jsonbcode discord_resume_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_resume self 
)

◆ discord_resume_to_json()

size_t discord_resume_to_json ( char  buf[],
size_t  size,
const struct discord_resume self 
)

◆ discord_request_guild_members_to_jsonb()

jsonbcode discord_request_guild_members_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_request_guild_members self 
)

◆ discord_request_guild_members_to_json()

size_t discord_request_guild_members_to_json ( char  buf[],
size_t  size,
const struct discord_request_guild_members self 
)

◆ discord_update_voice_state_to_jsonb()

jsonbcode discord_update_voice_state_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_update_voice_state self 
)

◆ discord_update_voice_state_to_json()

size_t discord_update_voice_state_to_json ( char  buf[],
size_t  size,
const struct discord_update_voice_state self 
)