6#ifndef API_APPLICATION_H
7#define API_APPLICATION_H
25#define DISCORD_APPLICATION_GATEWAY_PRESENCE 1 << 12
26#define DISCORD_APPLICATION_GATEWAY_PRESENCE_LIMITED 1 << 13
27#define DISCORD_APPLICATION_GATEWAY_GUILD_MEMBERS 1 << 14
28#define DISCORD_APPLICATION_GATEWAY_GUILD_MEMBERS_LIMITED 1 << 15
29#define DISCORD_APPLICATION_VERIFICATION_PENDING_GUILD_LIMIT 1 << 16
30#define DISCORD_APPLICATION_EMBEDDED 1 << 17
31#define DISCORD_APPLICATION_GATEWAY_MESSAGE_CONTENT 1 << 18
32#define DISCORD_APPLICATION_GATEWAY_MESSAGE_CONTENT_LIMITED 1 << 19
long discord_application_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_application *self)
void discord_application_cleanup(struct discord_application *self)
void discord_install_params_cleanup(struct discord_install_params *self)
long discord_install_params_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_install_params *self)
size_t discord_install_params_from_json(const char buf[], size_t size, struct discord_install_params *self)
jsonbcode discord_install_params_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_install_params *self)
void discord_application_init(struct discord_application *self)
jsonbcode discord_application_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_application *self)
size_t discord_install_params_to_json(char buf[], size_t size, const struct discord_install_params *self)
void discord_install_params_init(struct discord_install_params *self)
size_t discord_application_to_json(char buf[], size_t size, const struct discord_application *self)
size_t discord_application_from_json(const char buf[], size_t size, struct discord_application *self)
uint64_t u64snowflake
Snowflake datatype.
Definition: types.h:28
uint64_t u64bitmask
Bitmask primitive.
Definition: types.h:35
jsonbcode
json-builder return codes
Definition: json-build.h:34
Definition: application.h:35
u64snowflake primary_sku_id
Definition: application.h:77
struct discord_team * team
Definition: application.h:70
char * description
Definition: application.h:43
char * cover_image
Definition: application.h:82
bool bot_public
Definition: application.h:49
u64snowflake id
Definition: application.h:37
char * privacy_policy_url
Definition: application.h:56
char * terms_of_service_url
Definition: application.h:54
struct strings * rpc_origins
Definition: application.h:46
char * icon
Definition: application.h:41
u64bitmask flags
Definition: application.h:84
bool bot_require_code_grant
Definition: application.h:52
char * slug
Definition: application.h:80
u64snowflake guild_id
Definition: application.h:74
struct discord_user * owner
Definition: application.h:59
char * verify_key
Definition: application.h:66
char * summary
Definition: application.h:63
char * name
Definition: application.h:39
Definition: application.h:87
u64bitmask permissions
Definition: application.h:91
struct strings * scopes
Definition: application.h:89
Handle for building a JSON string.
Definition: json-build.h:61
int size
Definition: custom.h:20