40 bool enable_arg_switches;
41 bool enable_record_defined;
42 bool enable_record_null;
43 void *arg_switches[4];
44 void *record_defined[4];
49 extern void discord_audit_log_cleanup_v(
void *p);
51 extern void discord_audit_log_init_v(
void *p);
54 extern void discord_audit_log_free_v(
void *p);
56 extern void discord_audit_log_from_json_v(
char *json,
size_t len,
void *p);
57 extern void discord_audit_log_from_json(
char *json,
size_t len,
struct discord_audit_log *p);
58 extern size_t discord_audit_log_to_json_v(
char *json,
size_t len,
void *p);
59 extern size_t discord_audit_log_to_json(
char *json,
size_t len,
struct discord_audit_log *p);
60 extern size_t discord_audit_log_to_query_v(
char *json,
size_t len,
void *p);
61 extern size_t discord_audit_log_to_query(
char *json,
size_t len,
struct discord_audit_log *p);
62 extern void discord_audit_log_list_free_v(
void **p);
64 extern void discord_audit_log_list_from_json_v(
char *str,
size_t len,
void *p);
65 extern void discord_audit_log_list_from_json(
char *str,
size_t len,
struct discord_audit_log ***p);
66 extern size_t discord_audit_log_list_to_json_v(
char *str,
size_t len,
void *p);
67 extern size_t discord_audit_log_list_to_json(
char *str,
size_t len,
struct discord_audit_log **p);
70 enum discord_audit_log_events {
71 DISCORD_AUDIT_LOG_GUILD_UPDATE = 1,
72 DISCORD_AUDIT_LOG_CHANNEL_CREATE = 10,
73 DISCORD_AUDIT_LOG_CHANNEL_UPDATE = 11,
74 DISCORD_AUDIT_LOG_CHANNEL_DELETE = 12,
75 DISCORD_AUDIT_LOG_CHANNEL_OVERWRITE_CREATE = 13,
76 DISCORD_AUDIT_LOG_CHANNEL_OVERWRITE_UPDATE = 14,
77 DISCORD_AUDIT_LOG_CHANNEL_OVERWRITE_DELETE = 15,
78 DISCORD_AUDIT_LOG_MEMBER_KICK = 20,
79 DISCORD_AUDIT_LOG_MEMBER_PRUNE = 21,
80 DISCORD_AUDIT_LOG_MEMBER_BAN_ADD = 22,
81 DISCORD_AUDIT_LOG_MEMBER_BAN_REMOVE = 23,
82 DISCORD_AUDIT_LOG_MEMBER_UPDATE = 24,
83 DISCORD_AUDIT_LOG_MEMBER_ROLE_UPDATE = 25,
84 DISCORD_AUDIT_LOG_MEMBER_MOVE = 26,
85 DISCORD_AUDIT_LOG_MEMBER_DISCONNECT = 27,
86 DISCORD_AUDIT_LOG_BOT_ADD = 28,
87 DISCORD_AUDIT_LOG_ROLE_CREATE = 30,
88 DISCORD_AUDIT_LOG_ROLE_UPDATE = 31,
89 DISCORD_AUDIT_LOG_ROLE_DELETE = 32,
90 DISCORD_AUDIT_LOG_INVITE_CREATE = 40,
91 DISCORD_AUDIT_LOG_INVITE_DELETE = 42,
92 DISCORD_AUDIT_LOG_WEBHOOK_CREATE = 50,
93 DISCORD_AUDIT_LOG_WEBHOOK_UPDATE = 51,
94 DISCORD_AUDIT_LOG_WEBHOOK_DELETE = 52,
95 DISCORD_AUDIT_LOG_EMOJI_CREATE = 60,
96 DISCORD_AUDIT_LOG_EMOJI_UPDATE = 61,
97 DISCORD_AUDIT_LOG_EMOJI_DELETE = 62,
98 DISCORD_AUDIT_LOG_MESSAGE_DELETE = 72,
99 DISCORD_AUDIT_LOG_MESSAGE_BULK_DELETE = 73,
100 DISCORD_AUDIT_LOG_MESSAGE_PIN = 74,
101 DISCORD_AUDIT_LOG_MESSAGE_UNPIN = 75,
102 DISCORD_AUDIT_LOG_INTEGRATION_CREATE = 80,
103 DISCORD_AUDIT_LOG_INTEGRATION_UPDATE = 81,
104 DISCORD_AUDIT_LOG_INTEGRATION_DELETE = 82,
106 extern char* discord_audit_log_events_to_string(
enum discord_audit_log_events);
107 extern enum discord_audit_log_events discord_audit_log_events_from_string(
char*);
108 extern bool discord_audit_log_events_has(
enum discord_audit_log_events,
char*);
143 char reason[MAX_REASON_LEN];
151 bool enable_arg_switches;
152 bool enable_record_defined;
153 bool enable_record_null;
154 void *arg_switches[7];
155 void *record_defined[7];
156 void *record_null[7];
160 extern void discord_audit_log_entry_cleanup_v(
void *p);
162 extern void discord_audit_log_entry_init_v(
void *p);
165 extern void discord_audit_log_entry_free_v(
void *p);
167 extern void discord_audit_log_entry_from_json_v(
char *json,
size_t len,
void *p);
169 extern size_t discord_audit_log_entry_to_json_v(
char *json,
size_t len,
void *p);
171 extern size_t discord_audit_log_entry_to_query_v(
char *json,
size_t len,
void *p);
173 extern void discord_audit_log_entry_list_free_v(
void **p);
175 extern void discord_audit_log_entry_list_from_json_v(
char *str,
size_t len,
void *p);
176 extern void discord_audit_log_entry_list_from_json(
char *str,
size_t len,
struct discord_audit_log_entry ***p);
177 extern size_t discord_audit_log_entry_list_to_json_v(
char *str,
size_t len,
void *p);
189 char *delete_member_days;
193 char *members_removed;
225 bool enable_arg_switches;
226 bool enable_record_defined;
227 bool enable_record_null;
228 void *arg_switches[8];
229 void *record_defined[8];
230 void *record_null[8];
234 extern void discord_audit_log_entry_optional_info_cleanup_v(
void *p);
236 extern void discord_audit_log_entry_optional_info_init_v(
void *p);
239 extern void discord_audit_log_entry_optional_info_free_v(
void *p);
241 extern void discord_audit_log_entry_optional_info_from_json_v(
char *json,
size_t len,
void *p);
243 extern size_t discord_audit_log_entry_optional_info_to_json_v(
char *json,
size_t len,
void *p);
245 extern size_t discord_audit_log_entry_optional_info_to_query_v(
char *json,
size_t len,
void *p);
247 extern void discord_audit_log_entry_optional_info_list_free_v(
void **p);
249 extern void discord_audit_log_entry_optional_info_list_from_json_v(
char *str,
size_t len,
void *p);
251 extern size_t discord_audit_log_entry_optional_info_list_to_json_v(
char *str,
size_t len,
void *p);
279 bool enable_arg_switches;
280 bool enable_record_defined;
281 bool enable_record_null;
282 void *arg_switches[3];
283 void *record_defined[3];
284 void *record_null[3];
288 extern void discord_audit_log_change_cleanup_v(
void *p);
290 extern void discord_audit_log_change_init_v(
void *p);
293 extern void discord_audit_log_change_free_v(
void *p);
295 extern void discord_audit_log_change_from_json_v(
char *json,
size_t len,
void *p);
297 extern size_t discord_audit_log_change_to_json_v(
char *json,
size_t len,
void *p);
299 extern size_t discord_audit_log_change_to_query_v(
char *json,
size_t len,
void *p);
301 extern void discord_audit_log_change_list_free_v(
void **p);
303 extern void discord_audit_log_change_list_from_json_v(
char *str,
size_t len,
void *p);
305 extern size_t discord_audit_log_change_list_to_json_v(
char *str,
size_t len,
void *p);
317 char name[MAX_NAME_LEN];
321 char description[MAX_DESCRIPTION_LEN];
326 char icon_hash[MAX_SHA256_LEN];
331 char splash_hash[MAX_SHA256_LEN];
335 char discovery_splash_hash[MAX_SHA256_LEN];
347 char region[MAX_REGION_LEN];
351 char preferred_locale[MAX_LOCALE_LEN];
375 int verification_level;
379 int explicit_content_filter;
383 int default_message_notifications;
442 int rate_limit_per_user;
531 int expire_grace_period;
543 bool enable_arg_switches;
544 bool enable_record_defined;
545 bool enable_record_null;
546 void *arg_switches[54];
547 void *record_defined[54];
548 void *record_null[54];
552 extern void discord_audit_log_change_key_cleanup_v(
void *p);
554 extern void discord_audit_log_change_key_init_v(
void *p);
557 extern void discord_audit_log_change_key_free_v(
void *p);
559 extern void discord_audit_log_change_key_from_json_v(
char *json,
size_t len,
void *p);
561 extern size_t discord_audit_log_change_key_to_json_v(
char *json,
size_t len,
void *p);
563 extern size_t discord_audit_log_change_key_to_query_v(
char *json,
size_t len,
void *p);
565 extern void discord_audit_log_change_key_list_free_v(
void **p);
567 extern void discord_audit_log_change_key_list_from_json_v(
char *str,
size_t len,
void *p);
569 extern size_t discord_audit_log_change_key_list_to_json_v(
char *str,
size_t len,
void *p);