Orca
A bot framework that is easy to reason about, easy to debug, and easy to use.
Classes | Enumerations | Functions
gateway.h File Reference

Specs generated file. More...

Go to the source code of this file.

Classes

struct  discord_gateway_identify
 Identify Structure. More...
 
struct  discord_gateway_status_update
 Gateway Status Update Structure. More...
 
struct  discord_gateway_identify_connection
 Identify Connection Properties. More...
 
struct  discord_gateway_activity
 Activity Structure. More...
 

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
}
 
enum  discord_gateway_intents {
  DISCORD_GATEWAY_GUILDS = 1, DISCORD_GATEWAY_GUILD_MEMBERS = 2, DISCORD_GATEWAY_GUILD_BANS = 4, DISCORD_GATEWAY_GUILD_EMOJIS = 8,
  DISCORD_GATEWAY_GUILD_INTEGRATIONS = 16, DISCORD_GATEWAY_GUILD_WEBHOOKS = 32, DISCORD_GATEWAY_GUILD_INVITES = 64, DISCORD_GATEWAY_GUILD_VOICE_STATES = 128,
  DISCORD_GATEWAY_GUILD_PRESENCES = 256, DISCORD_GATEWAY_GUILD_MESSAGES = 512, DISCORD_GATEWAY_GUILD_MESSAGE_REACTIONS = 1024, DISCORD_GATEWAY_GUILD_MESSAGE_TYPING = 2048,
  DISCORD_GATEWAY_DIRECT_MESSAGES = 4096, DISCORD_GATEWAY_DIRECT_MESSAGE_REACTIONS = 8192, DISCORD_GATEWAY_DIRECT_MESSAGE_TYPING = 16384
}
 
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_gateway_events {
  DISCORD_GATEWAY_EVENTS_NONE = 0, DISCORD_GATEWAY_EVENTS_GUILD_CREATE = 1, DISCORD_GATEWAY_EVENTS_GUILD_UPDATE = 2, DISCORD_GATEWAY_EVENTS_GUILD_DELETE = 3,
  DISCORD_GATEWAY_EVENTS_GUILD_ROLE_CREATE = 4, DISCORD_GATEWAY_EVENTS_GUILD_ROLE_UPDATE = 5, DISCORD_GATEWAY_EVENTS_GUILD_ROLE_DELETE = 6, DISCORD_GATEWAY_EVENTS_GUILD_MEMBER_ADD = 7,
  DISCORD_GATEWAY_EVENTS_GUILD_MEMBER_UPDATE = 8, DISCORD_GATEWAY_EVENTS_GUILD_MEMBER_REMOVE = 9, DISCORD_GATEWAY_EVENTS_GUILD_BAN_ADD = 10, DISCORD_GATEWAY_EVENTS_GUILD_BAN_REMOVE = 11,
  DISCORD_GATEWAY_EVENTS_GUILD_EMOJIS_UPDATE = 12, DISCORD_GATEWAY_EVENTS_GUILD_INTEGRATIONS_UPDATE = 13, DISCORD_GATEWAY_EVENTS_CHANNEL_CREATE = 14, DISCORD_GATEWAY_EVENTS_CHANNEL_UPDATE = 15,
  DISCORD_GATEWAY_EVENTS_CHANNEL_DELETE = 16, DISCORD_GATEWAY_EVENTS_CHANNEL_PINS_UPDATE = 17, DISCORD_GATEWAY_EVENTS_INVITE_CREATE = 18, DISCORD_GATEWAY_EVENTS_INVITE_DELETE = 19,
  DISCORD_GATEWAY_EVENTS_MESSAGE_CREATE = 20, DISCORD_GATEWAY_EVENTS_MESSAGE_UPDATE = 21, DISCORD_GATEWAY_EVENTS_MESSAGE_DELETE = 22, DISCORD_GATEWAY_EVENTS_MESSAGE_DELETE_BULK = 23,
  DISCORD_GATEWAY_EVENTS_MESSAGE_REACTION_ADD = 24, DISCORD_GATEWAY_EVENTS_MESSAGE_REACTION_REMOVE = 25, DISCORD_GATEWAY_EVENTS_MESSAGE_REACTION_REMOVE_ALL = 26, DISCORD_GATEWAY_EVENTS_MESSAGE_REACTION_REMOVE_EMOJI = 27,
  DISCORD_GATEWAY_EVENTS_WEBHOOKS_UPDATE = 28, DISCORD_GATEWAY_EVENTS_VOICE_STATE_UPDATE = 29, DISCORD_GATEWAY_EVENTS_VOICE_SERVER_UPDATE = 30, DISCORD_GATEWAY_EVENTS_PRESENCE_UPDATE = 31,
  DISCORD_GATEWAY_EVENTS_TYPING_START = 32, DISCORD_GATEWAY_EVENTS_READY = 33, DISCORD_GATEWAY_EVENTS_RESUMED = 34
}
 
enum  discord_gateway_activity_types {
  DISCORD_GATEWAY_ACTIVITY_GAME = 0, DISCORD_GATEWAY_ACTIVITY_STREAMING = 1, DISCORD_GATEWAY_ACTIVITY_LISTENING = 2, DISCORD_GATEWAY_ACTIVITY_CUSTOM = 4,
  DISCORD_GATEWAY_ACTIVITY_COMPETING = 5
}
 

Functions

char * discord_gateway_close_opcodes_to_string (enum discord_gateway_close_opcodes)
 
enum discord_gateway_close_opcodes discord_gateway_close_opcodes_from_string (char *)
 
bool discord_gateway_close_opcodes_has (enum discord_gateway_close_opcodes, char *)
 
char * discord_gateway_intents_to_string (enum discord_gateway_intents)
 
enum discord_gateway_intents discord_gateway_intents_from_string (char *)
 
bool discord_gateway_intents_has (enum discord_gateway_intents, char *)
 
char * discord_gateway_opcodes_to_string (enum discord_gateway_opcodes)
 
enum discord_gateway_opcodes discord_gateway_opcodes_from_string (char *)
 
bool discord_gateway_opcodes_has (enum discord_gateway_opcodes, char *)
 
char * discord_gateway_events_to_string (enum discord_gateway_events)
 
enum discord_gateway_events discord_gateway_events_from_string (char *)
 
bool discord_gateway_events_has (enum discord_gateway_events, char *)
 
void discord_gateway_identify_cleanup_v (void *p)
 
void discord_gateway_identify_cleanup (struct discord_gateway_identify *p)
 
void discord_gateway_identify_init_v (void *p)
 
void discord_gateway_identify_init (struct discord_gateway_identify *p)
 
struct discord_gateway_identifydiscord_gateway_identify_alloc ()
 
void discord_gateway_identify_free_v (void *p)
 
void discord_gateway_identify_free (struct discord_gateway_identify *p)
 
void discord_gateway_identify_from_json_v (char *json, size_t len, void *p)
 
void discord_gateway_identify_from_json (char *json, size_t len, struct discord_gateway_identify *p)
 
size_t discord_gateway_identify_to_json_v (char *json, size_t len, void *p)
 
size_t discord_gateway_identify_to_json (char *json, size_t len, struct discord_gateway_identify *p)
 
size_t discord_gateway_identify_to_query_v (char *json, size_t len, void *p)
 
size_t discord_gateway_identify_to_query (char *json, size_t len, struct discord_gateway_identify *p)
 
void discord_gateway_identify_list_free_v (void **p)
 
void discord_gateway_identify_list_free (struct discord_gateway_identify **p)
 
void discord_gateway_identify_list_from_json_v (char *str, size_t len, void *p)
 
void discord_gateway_identify_list_from_json (char *str, size_t len, struct discord_gateway_identify ***p)
 
size_t discord_gateway_identify_list_to_json_v (char *str, size_t len, void *p)
 
size_t discord_gateway_identify_list_to_json (char *str, size_t len, struct discord_gateway_identify **p)
 
void discord_gateway_status_update_cleanup_v (void *p)
 
void discord_gateway_status_update_cleanup (struct discord_gateway_status_update *p)
 
void discord_gateway_status_update_init_v (void *p)
 
void discord_gateway_status_update_init (struct discord_gateway_status_update *p)
 
struct discord_gateway_status_updatediscord_gateway_status_update_alloc ()
 
void discord_gateway_status_update_free_v (void *p)
 
void discord_gateway_status_update_free (struct discord_gateway_status_update *p)
 
void discord_gateway_status_update_from_json_v (char *json, size_t len, void *p)
 
void discord_gateway_status_update_from_json (char *json, size_t len, struct discord_gateway_status_update *p)
 
size_t discord_gateway_status_update_to_json_v (char *json, size_t len, void *p)
 
size_t discord_gateway_status_update_to_json (char *json, size_t len, struct discord_gateway_status_update *p)
 
size_t discord_gateway_status_update_to_query_v (char *json, size_t len, void *p)
 
size_t discord_gateway_status_update_to_query (char *json, size_t len, struct discord_gateway_status_update *p)
 
void discord_gateway_status_update_list_free_v (void **p)
 
void discord_gateway_status_update_list_free (struct discord_gateway_status_update **p)
 
void discord_gateway_status_update_list_from_json_v (char *str, size_t len, void *p)
 
void discord_gateway_status_update_list_from_json (char *str, size_t len, struct discord_gateway_status_update ***p)
 
size_t discord_gateway_status_update_list_to_json_v (char *str, size_t len, void *p)
 
size_t discord_gateway_status_update_list_to_json (char *str, size_t len, struct discord_gateway_status_update **p)
 
void discord_gateway_identify_connection_cleanup_v (void *p)
 
void discord_gateway_identify_connection_cleanup (struct discord_gateway_identify_connection *p)
 
void discord_gateway_identify_connection_init_v (void *p)
 
void discord_gateway_identify_connection_init (struct discord_gateway_identify_connection *p)
 
struct discord_gateway_identify_connectiondiscord_gateway_identify_connection_alloc ()
 
void discord_gateway_identify_connection_free_v (void *p)
 
void discord_gateway_identify_connection_free (struct discord_gateway_identify_connection *p)
 
void discord_gateway_identify_connection_from_json_v (char *json, size_t len, void *p)
 
void discord_gateway_identify_connection_from_json (char *json, size_t len, struct discord_gateway_identify_connection *p)
 
size_t discord_gateway_identify_connection_to_json_v (char *json, size_t len, void *p)
 
size_t discord_gateway_identify_connection_to_json (char *json, size_t len, struct discord_gateway_identify_connection *p)
 
size_t discord_gateway_identify_connection_to_query_v (char *json, size_t len, void *p)
 
size_t discord_gateway_identify_connection_to_query (char *json, size_t len, struct discord_gateway_identify_connection *p)
 
void discord_gateway_identify_connection_list_free_v (void **p)
 
void discord_gateway_identify_connection_list_free (struct discord_gateway_identify_connection **p)
 
void discord_gateway_identify_connection_list_from_json_v (char *str, size_t len, void *p)
 
void discord_gateway_identify_connection_list_from_json (char *str, size_t len, struct discord_gateway_identify_connection ***p)
 
size_t discord_gateway_identify_connection_list_to_json_v (char *str, size_t len, void *p)
 
size_t discord_gateway_identify_connection_list_to_json (char *str, size_t len, struct discord_gateway_identify_connection **p)
 
void discord_gateway_activity_cleanup_v (void *p)
 
void discord_gateway_activity_cleanup (struct discord_gateway_activity *p)
 
void discord_gateway_activity_init_v (void *p)
 
void discord_gateway_activity_init (struct discord_gateway_activity *p)
 
struct discord_gateway_activitydiscord_gateway_activity_alloc ()
 
void discord_gateway_activity_free_v (void *p)
 
void discord_gateway_activity_free (struct discord_gateway_activity *p)
 
void discord_gateway_activity_from_json_v (char *json, size_t len, void *p)
 
void discord_gateway_activity_from_json (char *json, size_t len, struct discord_gateway_activity *p)
 
size_t discord_gateway_activity_to_json_v (char *json, size_t len, void *p)
 
size_t discord_gateway_activity_to_json (char *json, size_t len, struct discord_gateway_activity *p)
 
size_t discord_gateway_activity_to_query_v (char *json, size_t len, void *p)
 
size_t discord_gateway_activity_to_query (char *json, size_t len, struct discord_gateway_activity *p)
 
void discord_gateway_activity_list_free_v (void **p)
 
void discord_gateway_activity_list_free (struct discord_gateway_activity **p)
 
void discord_gateway_activity_list_from_json_v (char *str, size_t len, void *p)
 
void discord_gateway_activity_list_from_json (char *str, size_t len, struct discord_gateway_activity ***p)
 
size_t discord_gateway_activity_list_to_json_v (char *str, size_t len, void *p)
 
size_t discord_gateway_activity_list_to_json (char *str, size_t len, struct discord_gateway_activity **p)
 
char * discord_gateway_activity_types_to_string (enum discord_gateway_activity_types)
 
enum discord_gateway_activity_types discord_gateway_activity_types_from_string (char *)
 
bool discord_gateway_activity_types_has (enum discord_gateway_activity_types, char *)
 

Detailed Description

Specs generated file.

Author
cee-studio
Date
21 Jun 2021
See also
https://discord.com/developers/docs/topics/gateway