6#ifndef API_GUILD_SCHEDULED_EVENT_H
7#define API_GUILD_SCHEDULED_EVENT_H
size_t discord_modify_guild_scheduled_event_from_json(const char buf[], size_t size, struct discord_modify_guild_scheduled_event *self)
size_t discord_guild_scheduled_event_from_json(const char buf[], size_t size, struct discord_guild_scheduled_event *self)
void discord_guild_scheduled_event_cleanup(struct discord_guild_scheduled_event *self)
size_t discord_modify_guild_scheduled_event_to_json(char buf[], size_t size, const struct discord_modify_guild_scheduled_event *self)
void discord_modify_guild_scheduled_event_cleanup(struct discord_modify_guild_scheduled_event *self)
long discord_guild_scheduled_event_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild_scheduled_event *self)
void discord_create_guild_scheduled_event_cleanup(struct discord_create_guild_scheduled_event *self)
jsonbcode discord_modify_guild_scheduled_event_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_guild_scheduled_event *self)
jsonbcode discord_guild_scheduled_event_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_scheduled_event *self)
size_t discord_guild_scheduled_event_users_from_json(const char buf[], size_t size, struct discord_guild_scheduled_event_users *self)
void discord_guild_scheduled_events_cleanup(struct discord_guild_scheduled_events *self)
void discord_create_guild_scheduled_event_init(struct discord_create_guild_scheduled_event *self)
size_t discord_guild_scheduled_event_users_to_json(char buf[], size_t size, const struct discord_guild_scheduled_event_users *self)
discord_guild_scheduled_event_status
Definition: guild_scheduled_event.h:31
@ DISCORD_GUILD_SCHEDULED_EVENT_SCHEDULED
Definition: guild_scheduled_event.h:32
@ DISCORD_GUILD_SCHEDULED_EVENT_COMPLETED
Definition: guild_scheduled_event.h:34
@ DISCORD_GUILD_SCHEDULED_EVENT_CANCELED
Definition: guild_scheduled_event.h:35
@ DISCORD_GUILD_SCHEDULED_EVENT_ACTIVE
Definition: guild_scheduled_event.h:33
long discord_guild_scheduled_event_users_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild_scheduled_event_users *self)
jsonbcode discord_guild_scheduled_events_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_scheduled_events *self)
long discord_create_guild_scheduled_event_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_guild_scheduled_event *self)
void discord_guild_scheduled_event_users_cleanup(struct discord_guild_scheduled_event_users *self)
jsonbcode discord_guild_scheduled_event_users_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_scheduled_event_users *self)
size_t discord_create_guild_scheduled_event_from_json(const char buf[], size_t size, struct discord_create_guild_scheduled_event *self)
void discord_guild_scheduled_event_init(struct discord_guild_scheduled_event *self)
discord_guild_scheduled_event_entity_types
Definition: guild_scheduled_event.h:26
@ DISCORD_GUILD_SCHEDULED_EVENT_ENTITY_VOICE
Definition: guild_scheduled_event.h:28
@ DISCORD_GUILD_SCHEDULED_EVENT_ENTITY_EXTERNAL
Definition: guild_scheduled_event.h:29
@ DISCORD_GUILD_SCHEDULED_EVENT_ENTITY_STAGE_INSTANCE
Definition: guild_scheduled_event.h:27
size_t discord_create_guild_scheduled_event_to_json(char buf[], size_t size, const struct discord_create_guild_scheduled_event *self)
discord_guild_scheduled_event_privacy_level
Definition: guild_scheduled_event.h:22
@ DISCORD_GUILD_SCHEDULED_EVENT_GUILD_ONLY
Definition: guild_scheduled_event.h:24
void discord_modify_guild_scheduled_event_init(struct discord_modify_guild_scheduled_event *self)
jsonbcode discord_create_guild_scheduled_event_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_guild_scheduled_event *self)
long discord_modify_guild_scheduled_event_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_guild_scheduled_event *self)
size_t discord_guild_scheduled_events_to_json(char buf[], size_t size, const struct discord_guild_scheduled_events *self)
size_t discord_guild_scheduled_events_from_json(const char buf[], size_t size, struct discord_guild_scheduled_events *self)
long discord_guild_scheduled_events_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild_scheduled_events *self)
size_t discord_guild_scheduled_event_to_json(char buf[], size_t size, const struct discord_guild_scheduled_event *self)
uint64_t u64snowflake
Snowflake datatype.
Definition: types.h:28
uint64_t u64unix_ms
Unix time in milliseconds.
Definition: types.h:22
jsonbcode
json-builder return codes
Definition: json-build.h:34
Definition: guild_scheduled_event.h:119
struct discord_guild_scheduled_event_entity_metadata * entity_metadata
Definition: guild_scheduled_event.h:128
u64unix_ms scheduled_start_time
Definition: guild_scheduled_event.h:138
u64snowflake channel_id
Definition: guild_scheduled_event.h:124
enum discord_guild_scheduled_event_privacy_level privacy_level
Definition: guild_scheduled_event.h:134
u64unix_ms scheduled_end_time
Definition: guild_scheduled_event.h:142
char * description
Definition: guild_scheduled_event.h:146
char * reason
Definition: guild_scheduled_event.h:121
char * name
Definition: guild_scheduled_event.h:131
char * image
Definition: guild_scheduled_event.h:154
enum discord_guild_scheduled_event_entity_types entity_type
Definition: guild_scheduled_event.h:150
Definition: guild_scheduled_event.h:200
u64snowflake before
Definition: guild_scheduled_event.h:207
u64snowflake after
Definition: guild_scheduled_event.h:211
bool with_member
Definition: guild_scheduled_event.h:204
int limit
Definition: guild_scheduled_event.h:202
Definition: guild_scheduled_event.h:157
bool with_user_count
Definition: guild_scheduled_event.h:159
Definition: guild_scheduled_event.h:94
struct discord_user * user
Definition: guild_scheduled_event.h:99
u64snowflake guild_scheduled_event_id
Definition: guild_scheduled_event.h:96
struct discord_guild_member * member
Definition: guild_scheduled_event.h:104
Definition: guild_scheduled_event.h:108
struct discord_guild_scheduled_event_user * array
Definition: guild_scheduled_event.h:109
int size
Definition: guild_scheduled_event.h:108
Definition: guild_scheduled_event.h:38
enum discord_guild_scheduled_event_status status
Definition: guild_scheduled_event.h:63
u64snowflake channel_id
Definition: guild_scheduled_event.h:45
struct discord_guild_scheduled_event_entity_metadata * entity_metadata
Definition: guild_scheduled_event.h:73
enum discord_guild_scheduled_event_privacy_level privacy_level
Definition: guild_scheduled_event.h:59
u64snowflake entity_id
Definition: guild_scheduled_event.h:70
enum discord_guild_scheduled_event_entity_types entity_type
Definition: guild_scheduled_event.h:67
u64unix_ms scheduled_start_time
Definition: guild_scheduled_event.h:53
u64snowflake guild_id
Definition: guild_scheduled_event.h:42
struct discord_user * creator
Definition: guild_scheduled_event.h:77
u64snowflake creator_id
Definition: guild_scheduled_event.h:47
char * image
Definition: guild_scheduled_event.h:82
char * name
Definition: guild_scheduled_event.h:49
u64snowflake id
Definition: guild_scheduled_event.h:40
int user_count
Definition: guild_scheduled_event.h:80
char * description
Definition: guild_scheduled_event.h:51
u64unix_ms scheduled_end_time
Definition: guild_scheduled_event.h:56
Definition: guild_scheduled_event.h:91
struct discord_guild_scheduled_event * array
Definition: guild_scheduled_event.h:92
int size
Definition: guild_scheduled_event.h:91
Definition: guild_scheduled_event.h:114
bool with_user_count
Definition: guild_scheduled_event.h:116
Definition: guild_scheduled_event.h:162
char * image
Definition: guild_scheduled_event.h:197
char * description
Definition: guild_scheduled_event.h:185
enum discord_guild_scheduled_event_status status
Definition: guild_scheduled_event.h:193
u64unix_ms scheduled_start_time
Definition: guild_scheduled_event.h:177
u64snowflake channel_id
Definition: guild_scheduled_event.h:167
u64unix_ms scheduled_end_time
Definition: guild_scheduled_event.h:181
char * name
Definition: guild_scheduled_event.h:174
enum discord_guild_scheduled_event_entity_types entity_type
Definition: guild_scheduled_event.h:189
char * reason
Definition: guild_scheduled_event.h:164
struct discord_guild_scheduled_event_entity_metadata * entity_metadata
Definition: guild_scheduled_event.h:171
Handle for building a JSON string.
Definition: json-build.h:61