Orca
A bot framework that is easy to reason about, easy to debug, and easy to use.
guild.endpoints-params.h
Go to the documentation of this file.
1 /* This file is generated from specs/discord/guild.endpoints-params.json, Please don't edit it. */
18  /* specs/discord/guild.endpoints-params.json:13:20
19  '{ "name": "name", "type":{ "base":"char", "dec":"*" }, "comment":"name of the guild (2-100) characters"}' */
20  char *name; // name of the guild (2-100) characters
21 
22  /* specs/discord/guild.endpoints-params.json:14:20
23  '{ "name": "region", "type":{ "base":"char", "dec":"*" }, "option":true, "inject_if_not":null, "comment":"voice region id" }' */
24  char *region; // voice region id
25 
26  /* specs/discord/guild.endpoints-params.json:15:20
27  '{ "name": "icon", "type":{ "base":"char", "dec":"*" }, "option":true, "inject_if_not":null, "comment":"base64 128x1128 image for the guild icon"}' */
28  char *icon; // base64 128x1128 image for the guild icon
29 
30  /* specs/discord/guild.endpoints-params.json:16:20
31  '{ "name": "verification_level", "type":{ "base":"int" }, "option":true, "inject_if_not":0, "comment":"verification level"}' */
32  int verification_level; // verification level
33 
34  /* specs/discord/guild.endpoints-params.json:17:20
35  '{ "name": "default_message_notifications", "type":{ "base":"int" }, "option":true, "inject_if_not":0, "comment":"default message notification level"}' */
36  int default_message_notifications; // default message notification level
37 
38  /* specs/discord/guild.endpoints-params.json:18:20
39  '{ "name": "explicit_content_filter", "type":{ "base":"int" }, "option":true, "inject_if_not":0, "comment":"explicit content filter level"}' */
40  int explicit_content_filter; // explicit content filter level
41 
42  /* specs/discord/guild.endpoints-params.json:19:20
43  '{ "name": "roles", "type":{ "base":"int" }, "todo":true, "comment":"new guild roles" }' */
45 
46  /* specs/discord/guild.endpoints-params.json:20:20
47  '{ "name": "channels", "type":{ "base":"struct discord_channel", "dec":"ntl" }, "option":true, "inject_if_not":null, "comment":"array of partial channel objects"}' */
48  struct discord_channel **channels; // array of partial channel objects
49 
50  /* specs/discord/guild.endpoints-params.json:21:20
51  '{ "name": "afk_channel_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "option":true, "inject_if_not":0, "comment":"id for afk channel"}' */
52  u64_snowflake_t afk_channel_id; // id for afk channel
53 
54  /* specs/discord/guild.endpoints-params.json:22:20
55  '{ "name": "afk_timeout", "type":{ "base":"int" }, "option":true, "inject_if_not":0, "comment":"afk timeout in seconds"}' */
56  int afk_timeout; // afk timeout in seconds
57 
58  /* specs/discord/guild.endpoints-params.json:23:20
59  '{ "name": "system_channel_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "option":true, "inject_if_not":0, "comment":"the id of the channel where guild notices such as welcome messages and boost events are posted"}' */
60  u64_snowflake_t system_channel_id; // the id of the channel where guild notices such as welcome messages and boost events are posted
61 
62  // The following is metadata used to
63  // 1. control which field should be extracted/injected
64  // 2. record which field is presented(defined) in JSON
65  // 3. record which field is null in JSON
67  struct {
68  bool enable_arg_switches;
69  bool enable_record_defined;
70  bool enable_record_null;
71  void *arg_switches[11];
72  void *record_defined[11];
73  void *record_null[11];
74  } __M; // metadata
76 };
77 extern void discord_create_guild_params_cleanup_v(void *p);
78 extern void discord_create_guild_params_cleanup(struct discord_create_guild_params *p);
79 extern void discord_create_guild_params_init_v(void *p);
80 extern void discord_create_guild_params_init(struct discord_create_guild_params *p);
81 extern struct discord_create_guild_params * discord_create_guild_params_alloc();
82 extern void discord_create_guild_params_free_v(void *p);
83 extern void discord_create_guild_params_free(struct discord_create_guild_params *p);
84 extern void discord_create_guild_params_from_json_v(char *json, size_t len, void *p);
85 extern void discord_create_guild_params_from_json(char *json, size_t len, struct discord_create_guild_params *p);
86 extern size_t discord_create_guild_params_to_json_v(char *json, size_t len, void *p);
87 extern size_t discord_create_guild_params_to_json(char *json, size_t len, struct discord_create_guild_params *p);
88 extern size_t discord_create_guild_params_to_query_v(char *json, size_t len, void *p);
89 extern size_t discord_create_guild_params_to_query(char *json, size_t len, struct discord_create_guild_params *p);
90 extern void discord_create_guild_params_list_free_v(void **p);
91 extern void discord_create_guild_params_list_free(struct discord_create_guild_params **p);
92 extern void discord_create_guild_params_list_from_json_v(char *str, size_t len, void *p);
93 extern void discord_create_guild_params_list_from_json(char *str, size_t len, struct discord_create_guild_params ***p);
94 extern size_t discord_create_guild_params_list_to_json_v(char *str, size_t len, void *p);
95 extern size_t discord_create_guild_params_list_to_json(char *str, size_t len, struct discord_create_guild_params **p);
96 
104  /* specs/discord/guild.endpoints-params.json:33:20
105  '{ "name": "name", "type":{ "base":"char", "dec":"*" }, "comment":"name of the guild (2-100) characters"}' */
106  char *name; // name of the guild (2-100) characters
107 
108  /* specs/discord/guild.endpoints-params.json:34:20
109  '{ "name": "region", "type":{ "base":"char", "dec":"*" }, "option":true, "inject_if_not":null, "comment":"voice region id" }' */
110  char *region; // voice region id
111 
112  /* specs/discord/guild.endpoints-params.json:35:20
113  '{ "name": "verification_level", "type":{ "base":"int" }, "option":true, "inject_if_not":0, "comment":"verification level"}' */
114  int verification_level; // verification level
115 
116  /* specs/discord/guild.endpoints-params.json:36:20
117  '{ "name": "default_message_notifications", "type":{ "base":"int" }, "option":true, "inject_if_not":0, "comment":"default message notification level"}' */
118  int default_message_notifications; // default message notification level
119 
120  /* specs/discord/guild.endpoints-params.json:37:20
121  '{ "name": "explicit_content_filter", "type":{ "base":"int" }, "option":true, "inject_if_not":0, "comment":"explicit content filter level"}' */
122  int explicit_content_filter; // explicit content filter level
123 
124  /* specs/discord/guild.endpoints-params.json:38:20
125  '{ "name": "afk_channel_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "option":true, "inject_if_not":0, "comment":"id for afk channel"}' */
126  u64_snowflake_t afk_channel_id; // id for afk channel
127 
128  /* specs/discord/guild.endpoints-params.json:39:20
129  '{ "name": "afk_timeout", "type":{ "base":"int" }, "option":true, "inject_if_not":0, "comment":"afk timeout in seconds"}' */
130  int afk_timeout; // afk timeout in seconds
131 
132  /* specs/discord/guild.endpoints-params.json:40:20
133  '{ "name": "icon", "type":{ "base":"char", "dec":"*" }, "option":true, "inject_if_not":null, "comment":"base64 128x1128 image for the guild icon"}' */
134  char *icon; // base64 128x1128 image for the guild icon
135 
136  /* specs/discord/guild.endpoints-params.json:41:20
137  '{ "name": "owner_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "option":true, "inject_if_not":0, "comment":"user id to transfer guild ownership to (must be owner)"}' */
138  u64_snowflake_t owner_id; // user id to transfer guild ownership to (must be owner)
139 
140  /* specs/discord/guild.endpoints-params.json:42:20
141  '{ "name": "splash", "type":{ "base":"char", "dec":"*" }, "option":true, "inject_if_not":null, "comment":"base64 16:9 png/jpeg image for the guild splash (when the server has the INVITE_SPLASH feature"}' */
142  char *splash; // base64 16:9 png/jpeg image for the guild splash (when the server has the INVITE_SPLASH feature
143 
144  /* specs/discord/guild.endpoints-params.json:43:20
145  '{ "name": "discovery_splash", "type":{ "base":"char", "dec":"*" }, "option":true, "inject_if_not":null, "comment":"base64 16:9 png/jpeg image for the guild discovery splash (when the server has the DISCOVERABLE feature)"}' */
146  char *discovery_splash; // base64 16:9 png/jpeg image for the guild discovery splash (when the server has the DISCOVERABLE feature)
147 
148  /* specs/discord/guild.endpoints-params.json:44:20
149  '{ "name": "banner", "type":{ "base":"char", "dec":"*" }, "option":true, "inject_if_not":null, "comment":" base64 16:9 png/jpeg image for the guild banner (when the server has the BANNER feature)"}' */
150  char *banner; // cannot unescape an ill-formed-string base64 16:9 png/jpeg image for the guild banner (wh
151 
152  /* specs/discord/guild.endpoints-params.json:45:20
153  '{ "name": "system_channel_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "option":true, "inject_if_not":0, "comment":" the id of the channel where guild notices such as welcome messages and boost events are posted"}' */
154  u64_snowflake_t system_channel_id; // cannot unescape an ill-formed-string the id of the channel where guild notices such as welcome
155 
156  /* specs/discord/guild.endpoints-params.json:46:20
157  '{ "name": "system_channel_flags", "type":{ "base":"int", "int_alias":"enum discord_guild_system_channel_flags" }, "option":true, "inject_if_not":0, "comment":"system channel flags"}' */
158  enum discord_guild_system_channel_flags system_channel_flags; // system channel flags
159 
160  /* specs/discord/guild.endpoints-params.json:47:20
161  '{ "name": "rules_channel_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "option":true, "inject_if_not":0, "comment":"the id of the channel where Community guilds display rules and/or guidelines"}' */
162  u64_snowflake_t rules_channel_id; // the id of the channel where Community guilds display rules and/or guidelines
163 
164  /* specs/discord/guild.endpoints-params.json:48:20
165  '{ "name": "public_updates_channel_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "option":true, "inject_if_not":0, "comment":"the id of the channel where admins and moderators of Community guilds receive notices from Discord"}' */
166  u64_snowflake_t public_updates_channel_id; // the id of the channel where admins and moderators of Community guilds receive notices from Discord
167 
168  /* specs/discord/guild.endpoints-params.json:49:20
169  '{ "name": "preferred_locale", "type":{ "base":"char", "dec":"*" }, "comment":"the preferred locale of a Community guild used in server discovery and notices from Discord; defaults to \"en-US\""}' */
170  char *preferred_locale; // the preferred locale of a Community guild used in server discovery and notices from Discord; defaults to "en-US"
171 
172  /* specs/discord/guild.endpoints-params.json:50:18
173  '{"name":"features", "type": { "base":"ja_str", "dec":"ntl" }, "todo":true, "comment":"array of guild feature strings"}' */
175 
176  /* specs/discord/guild.endpoints-params.json:51:20
177  '{ "name": "description", "type":{ "base":"char", "dec":"*" }, "comment":"the description for the guild, if the guild is discoverable"}' */
178  char *description; // the description for the guild, if the guild is discoverable
179 
180  // The following is metadata used to
181  // 1. control which field should be extracted/injected
182  // 2. record which field is presented(defined) in JSON
183  // 3. record which field is null in JSON
185  struct {
186  bool enable_arg_switches;
187  bool enable_record_defined;
188  bool enable_record_null;
189  void *arg_switches[19];
190  void *record_defined[19];
191  void *record_null[19];
192  } __M; // metadata
194 };
195 extern void discord_modify_guild_params_cleanup_v(void *p);
196 extern void discord_modify_guild_params_cleanup(struct discord_modify_guild_params *p);
197 extern void discord_modify_guild_params_init_v(void *p);
198 extern void discord_modify_guild_params_init(struct discord_modify_guild_params *p);
199 extern struct discord_modify_guild_params * discord_modify_guild_params_alloc();
200 extern void discord_modify_guild_params_free_v(void *p);
201 extern void discord_modify_guild_params_free(struct discord_modify_guild_params *p);
202 extern void discord_modify_guild_params_from_json_v(char *json, size_t len, void *p);
203 extern void discord_modify_guild_params_from_json(char *json, size_t len, struct discord_modify_guild_params *p);
204 extern size_t discord_modify_guild_params_to_json_v(char *json, size_t len, void *p);
205 extern size_t discord_modify_guild_params_to_json(char *json, size_t len, struct discord_modify_guild_params *p);
206 extern size_t discord_modify_guild_params_to_query_v(char *json, size_t len, void *p);
207 extern size_t discord_modify_guild_params_to_query(char *json, size_t len, struct discord_modify_guild_params *p);
208 extern void discord_modify_guild_params_list_free_v(void **p);
209 extern void discord_modify_guild_params_list_free(struct discord_modify_guild_params **p);
210 extern void discord_modify_guild_params_list_from_json_v(char *str, size_t len, void *p);
211 extern void discord_modify_guild_params_list_from_json(char *str, size_t len, struct discord_modify_guild_params ***p);
212 extern size_t discord_modify_guild_params_list_to_json_v(char *str, size_t len, void *p);
213 extern size_t discord_modify_guild_params_list_to_json(char *str, size_t len, struct discord_modify_guild_params **p);
214 
222  /* specs/discord/guild.endpoints-params.json:61:20
223  '{ "name": "name", "type":{ "base":"char", "dec":"*" }}' */
224  char *name;
225 
226  /* specs/discord/guild.endpoints-params.json:62:20
227  '{ "name": "type", "type":{ "base":"int" }}' */
228  int type;
229 
230  /* specs/discord/guild.endpoints-params.json:63:20
231  '{ "name": "topic", "type":{ "base":"char", "dec":"*" }}' */
232  char *topic;
233 
234  /* specs/discord/guild.endpoints-params.json:64:20
235  '{ "name": "bitrate", "type":{ "base":"int" }, "inject_if_not":0}' */
236  int bitrate;
237 
238  /* specs/discord/guild.endpoints-params.json:65:20
239  '{ "name": "user_limit", "type":{ "base":"int" }, "inject_if_not":0}' */
240  int user_limit;
241 
242  /* specs/discord/guild.endpoints-params.json:66:20
243  '{ "name": "rate_limit_per_user", "type":{ "base":"int" }, "inject_if_not":0}' */
244  int rate_limit_per_user;
245 
246  /* specs/discord/guild.endpoints-params.json:67:20
247  '{ "name": "position", "type":{ "base":"int" } }' */
248  int position;
249 
250  /* specs/discord/guild.endpoints-params.json:68:20
251  '{ "name": "permission_overwrites", "type":{ "base":"struct discord_channel_overwrite", "dec":"ntl" }, "inject_if_not":null}' */
252  struct discord_channel_overwrite **permission_overwrites;
253 
254  /* specs/discord/guild.endpoints-params.json:69:20
255  '{ "name": "parent_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "inject_if_not":0}' */
256  u64_snowflake_t parent_id;
257 
258  /* specs/discord/guild.endpoints-params.json:70:20
259  '{ "name": "nsfw", "type":{ "base":"bool" }}' */
260  bool nsfw;
261 
262  // The following is metadata used to
263  // 1. control which field should be extracted/injected
264  // 2. record which field is presented(defined) in JSON
265  // 3. record which field is null in JSON
267  struct {
268  bool enable_arg_switches;
269  bool enable_record_defined;
270  bool enable_record_null;
271  void *arg_switches[10];
272  void *record_defined[10];
273  void *record_null[10];
274  } __M; // metadata
276 };
277 extern void discord_create_guild_channel_params_cleanup_v(void *p);
278 extern void discord_create_guild_channel_params_cleanup(struct discord_create_guild_channel_params *p);
279 extern void discord_create_guild_channel_params_init_v(void *p);
280 extern void discord_create_guild_channel_params_init(struct discord_create_guild_channel_params *p);
281 extern struct discord_create_guild_channel_params * discord_create_guild_channel_params_alloc();
282 extern void discord_create_guild_channel_params_free_v(void *p);
283 extern void discord_create_guild_channel_params_free(struct discord_create_guild_channel_params *p);
284 extern void discord_create_guild_channel_params_from_json_v(char *json, size_t len, void *p);
285 extern void discord_create_guild_channel_params_from_json(char *json, size_t len, struct discord_create_guild_channel_params *p);
286 extern size_t discord_create_guild_channel_params_to_json_v(char *json, size_t len, void *p);
287 extern size_t discord_create_guild_channel_params_to_json(char *json, size_t len, struct discord_create_guild_channel_params *p);
288 extern size_t discord_create_guild_channel_params_to_query_v(char *json, size_t len, void *p);
289 extern size_t discord_create_guild_channel_params_to_query(char *json, size_t len, struct discord_create_guild_channel_params *p);
290 extern void discord_create_guild_channel_params_list_free_v(void **p);
291 extern void discord_create_guild_channel_params_list_free(struct discord_create_guild_channel_params **p);
292 extern void discord_create_guild_channel_params_list_from_json_v(char *str, size_t len, void *p);
293 extern void discord_create_guild_channel_params_list_from_json(char *str, size_t len, struct discord_create_guild_channel_params ***p);
294 extern size_t discord_create_guild_channel_params_list_to_json_v(char *str, size_t len, void *p);
295 extern size_t discord_create_guild_channel_params_list_to_json(char *str, size_t len, struct discord_create_guild_channel_params **p);
296 
304  /* specs/discord/guild.endpoints-params.json:80:20
305  '{ "name": "id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "option":true, "inject_if_not":0, "comment":"channel id"}' */
306  u64_snowflake_t id; // channel id
307 
308  /* specs/discord/guild.endpoints-params.json:81:20
309  '{ "name": "position", "type":{ "base":"int" }, "option":true, "inject_if_not":0, "comment":"sorting position of the channel"}' */
310  int position; // sorting position of the channel
311 
312  /* specs/discord/guild.endpoints-params.json:82:20
313  '{ "name": "lock_permissions", "type":{ "base":"bool" }, "option":true, "inject_if_not":false, "comment":"syncs the permission overwrites with the new parent, if moving to a new category"}' */
314  bool lock_permissions; // syncs the permission overwrites with the new parent, if moving to a new category
315 
316  /* specs/discord/guild.endpoints-params.json:83:20
317  '{ "name": "parent_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "option":true, "inject_if_not":0, "comment":"the new parent ID for the channel that is moved"}' */
318  u64_snowflake_t parent_id; // the new parent ID for the channel that is moved
319 
320  // The following is metadata used to
321  // 1. control which field should be extracted/injected
322  // 2. record which field is presented(defined) in JSON
323  // 3. record which field is null in JSON
325  struct {
326  bool enable_arg_switches;
327  bool enable_record_defined;
328  bool enable_record_null;
329  void *arg_switches[4];
330  void *record_defined[4];
331  void *record_null[4];
332  } __M; // metadata
334 };
335 extern void discord_modify_guild_channel_positions_params_cleanup_v(void *p);
336 extern void discord_modify_guild_channel_positions_params_cleanup(struct discord_modify_guild_channel_positions_params *p);
337 extern void discord_modify_guild_channel_positions_params_init_v(void *p);
338 extern void discord_modify_guild_channel_positions_params_init(struct discord_modify_guild_channel_positions_params *p);
339 extern struct discord_modify_guild_channel_positions_params * discord_modify_guild_channel_positions_params_alloc();
340 extern void discord_modify_guild_channel_positions_params_free_v(void *p);
341 extern void discord_modify_guild_channel_positions_params_free(struct discord_modify_guild_channel_positions_params *p);
342 extern void discord_modify_guild_channel_positions_params_from_json_v(char *json, size_t len, void *p);
343 extern void discord_modify_guild_channel_positions_params_from_json(char *json, size_t len, struct discord_modify_guild_channel_positions_params *p);
344 extern size_t discord_modify_guild_channel_positions_params_to_json_v(char *json, size_t len, void *p);
345 extern size_t discord_modify_guild_channel_positions_params_to_json(char *json, size_t len, struct discord_modify_guild_channel_positions_params *p);
346 extern size_t discord_modify_guild_channel_positions_params_to_query_v(char *json, size_t len, void *p);
347 extern size_t discord_modify_guild_channel_positions_params_to_query(char *json, size_t len, struct discord_modify_guild_channel_positions_params *p);
348 extern void discord_modify_guild_channel_positions_params_list_free_v(void **p);
349 extern void discord_modify_guild_channel_positions_params_list_free(struct discord_modify_guild_channel_positions_params **p);
350 extern void discord_modify_guild_channel_positions_params_list_from_json_v(char *str, size_t len, void *p);
351 extern void discord_modify_guild_channel_positions_params_list_from_json(char *str, size_t len, struct discord_modify_guild_channel_positions_params ***p);
352 extern size_t discord_modify_guild_channel_positions_params_list_to_json_v(char *str, size_t len, void *p);
353 extern size_t discord_modify_guild_channel_positions_params_list_to_json(char *str, size_t len, struct discord_modify_guild_channel_positions_params **p);
354 
362  /* specs/discord/guild.endpoints-params.json:93:20
363  '{ "name": "query", "type":{ "base":"char", "dec":"*" }, "inject_if_not":null, "comment": "Query string to match username(s) and nickname(s) against." }' */
364  char *query; // Query string to match username(s) and nickname(s) against.
365 
366  /* specs/discord/guild.endpoints-params.json:94:20
367  '{ "name": "limit", "type":{ "base":"int" }, "inject_if_not":0, "comment": "max number of members to return (1-1000)"}' */
368  int limit; // max number of members to return (1-1000)
369 
370  // The following is metadata used to
371  // 1. control which field should be extracted/injected
372  // 2. record which field is presented(defined) in JSON
373  // 3. record which field is null in JSON
375  struct {
376  bool enable_arg_switches;
377  bool enable_record_defined;
378  bool enable_record_null;
379  void *arg_switches[2];
380  void *record_defined[2];
381  void *record_null[2];
382  } __M; // metadata
384 };
385 extern void discord_search_guild_members_params_cleanup_v(void *p);
386 extern void discord_search_guild_members_params_cleanup(struct discord_search_guild_members_params *p);
387 extern void discord_search_guild_members_params_init_v(void *p);
388 extern void discord_search_guild_members_params_init(struct discord_search_guild_members_params *p);
389 extern struct discord_search_guild_members_params * discord_search_guild_members_params_alloc();
390 extern void discord_search_guild_members_params_free_v(void *p);
391 extern void discord_search_guild_members_params_free(struct discord_search_guild_members_params *p);
392 extern void discord_search_guild_members_params_from_json_v(char *json, size_t len, void *p);
393 extern void discord_search_guild_members_params_from_json(char *json, size_t len, struct discord_search_guild_members_params *p);
394 extern size_t discord_search_guild_members_params_to_json_v(char *json, size_t len, void *p);
395 extern size_t discord_search_guild_members_params_to_json(char *json, size_t len, struct discord_search_guild_members_params *p);
396 extern size_t discord_search_guild_members_params_to_query_v(char *json, size_t len, void *p);
397 extern size_t discord_search_guild_members_params_to_query(char *json, size_t len, struct discord_search_guild_members_params *p);
398 extern void discord_search_guild_members_params_list_free_v(void **p);
399 extern void discord_search_guild_members_params_list_free(struct discord_search_guild_members_params **p);
400 extern void discord_search_guild_members_params_list_from_json_v(char *str, size_t len, void *p);
401 extern void discord_search_guild_members_params_list_from_json(char *str, size_t len, struct discord_search_guild_members_params ***p);
402 extern size_t discord_search_guild_members_params_list_to_json_v(char *str, size_t len, void *p);
403 extern size_t discord_search_guild_members_params_list_to_json(char *str, size_t len, struct discord_search_guild_members_params **p);
404 
412  /* specs/discord/guild.endpoints-params.json:104:20
413  '{ "name": "access_token", "type":{ "base":"char", "dec":"*" }, "inject_if_not":null}' */
414  char *access_token;
415 
416  /* specs/discord/guild.endpoints-params.json:105:20
417  '{ "name": "nick", "type":{ "base":"char", "dec":"*" }, "inject_if_not":null}' */
418  char *nick;
419 
420  /* specs/discord/guild.endpoints-params.json:106:20
421  '{ "name": "roles", "type":{ "base":"ja_u64", "dec":"ntl" }, "inject_if_not":null}' */
422  ja_u64 **roles;
423 
424  /* specs/discord/guild.endpoints-params.json:107:20
425  '{ "name": "mute", "type":{ "base":"bool" }, "inject_if_not":false}' */
426  bool mute;
427 
428  /* specs/discord/guild.endpoints-params.json:108:20
429  '{ "name": "deaf", "type":{ "base":"bool" }, "inject_if_not":false}' */
430  bool deaf;
431 
432  // The following is metadata used to
433  // 1. control which field should be extracted/injected
434  // 2. record which field is presented(defined) in JSON
435  // 3. record which field is null in JSON
437  struct {
438  bool enable_arg_switches;
439  bool enable_record_defined;
440  bool enable_record_null;
441  void *arg_switches[5];
442  void *record_defined[5];
443  void *record_null[5];
444  } __M; // metadata
446 };
447 extern void discord_add_guild_member_params_cleanup_v(void *p);
448 extern void discord_add_guild_member_params_cleanup(struct discord_add_guild_member_params *p);
449 extern void discord_add_guild_member_params_init_v(void *p);
450 extern void discord_add_guild_member_params_init(struct discord_add_guild_member_params *p);
451 extern struct discord_add_guild_member_params * discord_add_guild_member_params_alloc();
452 extern void discord_add_guild_member_params_free_v(void *p);
453 extern void discord_add_guild_member_params_free(struct discord_add_guild_member_params *p);
454 extern void discord_add_guild_member_params_from_json_v(char *json, size_t len, void *p);
455 extern void discord_add_guild_member_params_from_json(char *json, size_t len, struct discord_add_guild_member_params *p);
456 extern size_t discord_add_guild_member_params_to_json_v(char *json, size_t len, void *p);
457 extern size_t discord_add_guild_member_params_to_json(char *json, size_t len, struct discord_add_guild_member_params *p);
458 extern size_t discord_add_guild_member_params_to_query_v(char *json, size_t len, void *p);
459 extern size_t discord_add_guild_member_params_to_query(char *json, size_t len, struct discord_add_guild_member_params *p);
460 extern void discord_add_guild_member_params_list_free_v(void **p);
461 extern void discord_add_guild_member_params_list_free(struct discord_add_guild_member_params **p);
462 extern void discord_add_guild_member_params_list_from_json_v(char *str, size_t len, void *p);
463 extern void discord_add_guild_member_params_list_from_json(char *str, size_t len, struct discord_add_guild_member_params ***p);
464 extern size_t discord_add_guild_member_params_list_to_json_v(char *str, size_t len, void *p);
465 extern size_t discord_add_guild_member_params_list_to_json(char *str, size_t len, struct discord_add_guild_member_params **p);
466 
474  /* specs/discord/guild.endpoints-params.json:118:20
475  '{ "name": "nick", "type":{ "base":"char", "dec":"*" }}' */
476  char *nick;
477 
478  /* specs/discord/guild.endpoints-params.json:119:20
479  '{ "name": "roles", "type":{ "base":"ja_u64", "dec":"ntl" }, "inject_if_not":null}' */
480  ja_u64 **roles;
481 
482  /* specs/discord/guild.endpoints-params.json:120:20
483  '{ "name": "mute", "type":{ "base":"bool" }, "inject_if_not":false}' */
484  bool mute;
485 
486  /* specs/discord/guild.endpoints-params.json:121:20
487  '{ "name": "deaf", "type":{ "base":"bool" }, "inject_if_not":false}' */
488  bool deaf;
489 
490  /* specs/discord/guild.endpoints-params.json:122:20
491  '{ "name": "channel_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "inject_if_not":0}' */
492  u64_snowflake_t channel_id;
493 
494  // The following is metadata used to
495  // 1. control which field should be extracted/injected
496  // 2. record which field is presented(defined) in JSON
497  // 3. record which field is null in JSON
499  struct {
500  bool enable_arg_switches;
501  bool enable_record_defined;
502  bool enable_record_null;
503  void *arg_switches[5];
504  void *record_defined[5];
505  void *record_null[5];
506  } __M; // metadata
508 };
509 extern void discord_modify_guild_member_params_cleanup_v(void *p);
510 extern void discord_modify_guild_member_params_cleanup(struct discord_modify_guild_member_params *p);
511 extern void discord_modify_guild_member_params_init_v(void *p);
512 extern void discord_modify_guild_member_params_init(struct discord_modify_guild_member_params *p);
513 extern struct discord_modify_guild_member_params * discord_modify_guild_member_params_alloc();
514 extern void discord_modify_guild_member_params_free_v(void *p);
515 extern void discord_modify_guild_member_params_free(struct discord_modify_guild_member_params *p);
516 extern void discord_modify_guild_member_params_from_json_v(char *json, size_t len, void *p);
517 extern void discord_modify_guild_member_params_from_json(char *json, size_t len, struct discord_modify_guild_member_params *p);
518 extern size_t discord_modify_guild_member_params_to_json_v(char *json, size_t len, void *p);
519 extern size_t discord_modify_guild_member_params_to_json(char *json, size_t len, struct discord_modify_guild_member_params *p);
520 extern size_t discord_modify_guild_member_params_to_query_v(char *json, size_t len, void *p);
521 extern size_t discord_modify_guild_member_params_to_query(char *json, size_t len, struct discord_modify_guild_member_params *p);
522 extern void discord_modify_guild_member_params_list_free_v(void **p);
523 extern void discord_modify_guild_member_params_list_free(struct discord_modify_guild_member_params **p);
524 extern void discord_modify_guild_member_params_list_from_json_v(char *str, size_t len, void *p);
525 extern void discord_modify_guild_member_params_list_from_json(char *str, size_t len, struct discord_modify_guild_member_params ***p);
526 extern size_t discord_modify_guild_member_params_list_to_json_v(char *str, size_t len, void *p);
527 extern size_t discord_modify_guild_member_params_list_to_json(char *str, size_t len, struct discord_modify_guild_member_params **p);
528 
536  /* specs/discord/guild.endpoints-params.json:132:20
537  '{ "name": "name", "type":{ "base":"char", "dec":"*" }}' */
538  char *name;
539 
540  /* specs/discord/guild.endpoints-params.json:133:20
541  '{ "name": "permissions", "type":{ "base":"s_as_hex_uint", "int_alias":"enum discord_permissions_bitwise_flags" }, "inject_if_not":0}' */
542  enum discord_permissions_bitwise_flags permissions;
543 
544  /* specs/discord/guild.endpoints-params.json:134:20
545  '{ "name": "color", "type":{ "base":"int" }, "inject_if_not":0}' */
546  int color;
547 
548  /* specs/discord/guild.endpoints-params.json:135:20
549  '{ "name": "hoist", "type":{ "base":"bool" }, "inject_if_not":false}' */
550  bool hoist;
551 
552  /* specs/discord/guild.endpoints-params.json:136:20
553  '{ "name": "mentionable", "type":{ "base":"bool" }, "inject_if_not":false}' */
554  bool mentionable;
555 
556  // The following is metadata used to
557  // 1. control which field should be extracted/injected
558  // 2. record which field is presented(defined) in JSON
559  // 3. record which field is null in JSON
561  struct {
562  bool enable_arg_switches;
563  bool enable_record_defined;
564  bool enable_record_null;
565  void *arg_switches[5];
566  void *record_defined[5];
567  void *record_null[5];
568  } __M; // metadata
570 };
571 extern void discord_create_guild_role_params_cleanup_v(void *p);
572 extern void discord_create_guild_role_params_cleanup(struct discord_create_guild_role_params *p);
573 extern void discord_create_guild_role_params_init_v(void *p);
574 extern void discord_create_guild_role_params_init(struct discord_create_guild_role_params *p);
575 extern struct discord_create_guild_role_params * discord_create_guild_role_params_alloc();
576 extern void discord_create_guild_role_params_free_v(void *p);
577 extern void discord_create_guild_role_params_free(struct discord_create_guild_role_params *p);
578 extern void discord_create_guild_role_params_from_json_v(char *json, size_t len, void *p);
579 extern void discord_create_guild_role_params_from_json(char *json, size_t len, struct discord_create_guild_role_params *p);
580 extern size_t discord_create_guild_role_params_to_json_v(char *json, size_t len, void *p);
581 extern size_t discord_create_guild_role_params_to_json(char *json, size_t len, struct discord_create_guild_role_params *p);
582 extern size_t discord_create_guild_role_params_to_query_v(char *json, size_t len, void *p);
583 extern size_t discord_create_guild_role_params_to_query(char *json, size_t len, struct discord_create_guild_role_params *p);
584 extern void discord_create_guild_role_params_list_free_v(void **p);
585 extern void discord_create_guild_role_params_list_free(struct discord_create_guild_role_params **p);
586 extern void discord_create_guild_role_params_list_from_json_v(char *str, size_t len, void *p);
587 extern void discord_create_guild_role_params_list_from_json(char *str, size_t len, struct discord_create_guild_role_params ***p);
588 extern size_t discord_create_guild_role_params_list_to_json_v(char *str, size_t len, void *p);
589 extern size_t discord_create_guild_role_params_list_to_json(char *str, size_t len, struct discord_create_guild_role_params **p);
590 
598  /* specs/discord/guild.endpoints-params.json:146:20
599  '{ "name": "id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "option":true, "inject_if_not":0, "comment":"role"}' */
600  u64_snowflake_t id; // role
601 
602  /* specs/discord/guild.endpoints-params.json:147:20
603  '{ "name": "position", "type":{ "base":"int" }, "option":true, "inject_if_not":0, "comment":"sorting position of the role"}' */
604  int position; // sorting position of the role
605 
606  // The following is metadata used to
607  // 1. control which field should be extracted/injected
608  // 2. record which field is presented(defined) in JSON
609  // 3. record which field is null in JSON
611  struct {
612  bool enable_arg_switches;
613  bool enable_record_defined;
614  bool enable_record_null;
615  void *arg_switches[2];
616  void *record_defined[2];
617  void *record_null[2];
618  } __M; // metadata
620 };
621 extern void discord_modify_guild_role_positions_params_cleanup_v(void *p);
622 extern void discord_modify_guild_role_positions_params_cleanup(struct discord_modify_guild_role_positions_params *p);
623 extern void discord_modify_guild_role_positions_params_init_v(void *p);
624 extern void discord_modify_guild_role_positions_params_init(struct discord_modify_guild_role_positions_params *p);
625 extern struct discord_modify_guild_role_positions_params * discord_modify_guild_role_positions_params_alloc();
626 extern void discord_modify_guild_role_positions_params_free_v(void *p);
627 extern void discord_modify_guild_role_positions_params_free(struct discord_modify_guild_role_positions_params *p);
628 extern void discord_modify_guild_role_positions_params_from_json_v(char *json, size_t len, void *p);
629 extern void discord_modify_guild_role_positions_params_from_json(char *json, size_t len, struct discord_modify_guild_role_positions_params *p);
630 extern size_t discord_modify_guild_role_positions_params_to_json_v(char *json, size_t len, void *p);
631 extern size_t discord_modify_guild_role_positions_params_to_json(char *json, size_t len, struct discord_modify_guild_role_positions_params *p);
632 extern size_t discord_modify_guild_role_positions_params_to_query_v(char *json, size_t len, void *p);
633 extern size_t discord_modify_guild_role_positions_params_to_query(char *json, size_t len, struct discord_modify_guild_role_positions_params *p);
634 extern void discord_modify_guild_role_positions_params_list_free_v(void **p);
635 extern void discord_modify_guild_role_positions_params_list_free(struct discord_modify_guild_role_positions_params **p);
636 extern void discord_modify_guild_role_positions_params_list_from_json_v(char *str, size_t len, void *p);
637 extern void discord_modify_guild_role_positions_params_list_from_json(char *str, size_t len, struct discord_modify_guild_role_positions_params ***p);
638 extern size_t discord_modify_guild_role_positions_params_list_to_json_v(char *str, size_t len, void *p);
639 extern size_t discord_modify_guild_role_positions_params_list_to_json(char *str, size_t len, struct discord_modify_guild_role_positions_params **p);
640 
648  /* specs/discord/guild.endpoints-params.json:157:20
649  '{ "name": "name", "type":{ "base":"char", "dec":"*" }, "option":true, "inject_if_not":null, "comment":"name of the role"}' */
650  char *name; // name of the role
651 
652  /* specs/discord/guild.endpoints-params.json:158:20
653  '{ "name": "permissions", "type":{ "base":"s_as_hex_uint", "int_alias":"enum discord_permissions_bitwise_flags" }, "option":true, "inject_if_not":0, "comment":"bitwise value of the enabled/disabled permissions"}' */
654  enum discord_permissions_bitwise_flags permissions; // bitwise value of the enabled/disabled permissions
655 
656  /* specs/discord/guild.endpoints-params.json:159:20
657  '{ "name": "color", "type":{ "base":"int" }, "option":true, "inject_if_not":0, "comment":"RGB color value"}' */
658  int color; // RGB color value
659 
660  /* specs/discord/guild.endpoints-params.json:160:20
661  '{ "name": "hoist", "type":{ "base":"bool" }, "option":true, "inject_if_not":false, "comment":"whether the role should be displayed separately in the sidebar"}' */
662  bool hoist; // whether the role should be displayed separately in the sidebar
663 
664  /* specs/discord/guild.endpoints-params.json:161:20
665  '{ "name": "mentionable", "type":{ "base":"bool" }, "option":true, "inject_if_not":false, "comment":"whether the role should be mentionable"}' */
666  bool mentionable; // whether the role should be mentionable
667 
668  // The following is metadata used to
669  // 1. control which field should be extracted/injected
670  // 2. record which field is presented(defined) in JSON
671  // 3. record which field is null in JSON
673  struct {
674  bool enable_arg_switches;
675  bool enable_record_defined;
676  bool enable_record_null;
677  void *arg_switches[5];
678  void *record_defined[5];
679  void *record_null[5];
680  } __M; // metadata
682 };
683 extern void discord_modify_guild_role_params_cleanup_v(void *p);
684 extern void discord_modify_guild_role_params_cleanup(struct discord_modify_guild_role_params *p);
685 extern void discord_modify_guild_role_params_init_v(void *p);
686 extern void discord_modify_guild_role_params_init(struct discord_modify_guild_role_params *p);
687 extern struct discord_modify_guild_role_params * discord_modify_guild_role_params_alloc();
688 extern void discord_modify_guild_role_params_free_v(void *p);
689 extern void discord_modify_guild_role_params_free(struct discord_modify_guild_role_params *p);
690 extern void discord_modify_guild_role_params_from_json_v(char *json, size_t len, void *p);
691 extern void discord_modify_guild_role_params_from_json(char *json, size_t len, struct discord_modify_guild_role_params *p);
692 extern size_t discord_modify_guild_role_params_to_json_v(char *json, size_t len, void *p);
693 extern size_t discord_modify_guild_role_params_to_json(char *json, size_t len, struct discord_modify_guild_role_params *p);
694 extern size_t discord_modify_guild_role_params_to_query_v(char *json, size_t len, void *p);
695 extern size_t discord_modify_guild_role_params_to_query(char *json, size_t len, struct discord_modify_guild_role_params *p);
696 extern void discord_modify_guild_role_params_list_free_v(void **p);
697 extern void discord_modify_guild_role_params_list_free(struct discord_modify_guild_role_params **p);
698 extern void discord_modify_guild_role_params_list_from_json_v(char *str, size_t len, void *p);
699 extern void discord_modify_guild_role_params_list_from_json(char *str, size_t len, struct discord_modify_guild_role_params ***p);
700 extern size_t discord_modify_guild_role_params_list_to_json_v(char *str, size_t len, void *p);
701 extern size_t discord_modify_guild_role_params_list_to_json(char *str, size_t len, struct discord_modify_guild_role_params **p);
702 
710  /* specs/discord/guild.endpoints-params.json:171:20
711  '{ "name": "days", "type":{ "base":"int" }, "inject_if_not":0}' */
712  int days;
713 
714  /* specs/discord/guild.endpoints-params.json:172:20
715  '{ "name": "include_roles", "type":{ "base":"ja_u64", "dec":"ntl" }, "inject_if_not":null}' */
716  ja_u64 **include_roles;
717 
718  // The following is metadata used to
719  // 1. control which field should be extracted/injected
720  // 2. record which field is presented(defined) in JSON
721  // 3. record which field is null in JSON
723  struct {
724  bool enable_arg_switches;
725  bool enable_record_defined;
726  bool enable_record_null;
727  void *arg_switches[2];
728  void *record_defined[2];
729  void *record_null[2];
730  } __M; // metadata
732 };
733 extern void discord_get_guild_prune_count_params_cleanup_v(void *p);
734 extern void discord_get_guild_prune_count_params_cleanup(struct discord_get_guild_prune_count_params *p);
735 extern void discord_get_guild_prune_count_params_init_v(void *p);
736 extern void discord_get_guild_prune_count_params_init(struct discord_get_guild_prune_count_params *p);
737 extern struct discord_get_guild_prune_count_params * discord_get_guild_prune_count_params_alloc();
738 extern void discord_get_guild_prune_count_params_free_v(void *p);
739 extern void discord_get_guild_prune_count_params_free(struct discord_get_guild_prune_count_params *p);
740 extern void discord_get_guild_prune_count_params_from_json_v(char *json, size_t len, void *p);
741 extern void discord_get_guild_prune_count_params_from_json(char *json, size_t len, struct discord_get_guild_prune_count_params *p);
742 extern size_t discord_get_guild_prune_count_params_to_json_v(char *json, size_t len, void *p);
743 extern size_t discord_get_guild_prune_count_params_to_json(char *json, size_t len, struct discord_get_guild_prune_count_params *p);
744 extern size_t discord_get_guild_prune_count_params_to_query_v(char *json, size_t len, void *p);
745 extern size_t discord_get_guild_prune_count_params_to_query(char *json, size_t len, struct discord_get_guild_prune_count_params *p);
746 extern void discord_get_guild_prune_count_params_list_free_v(void **p);
747 extern void discord_get_guild_prune_count_params_list_free(struct discord_get_guild_prune_count_params **p);
748 extern void discord_get_guild_prune_count_params_list_from_json_v(char *str, size_t len, void *p);
749 extern void discord_get_guild_prune_count_params_list_from_json(char *str, size_t len, struct discord_get_guild_prune_count_params ***p);
750 extern size_t discord_get_guild_prune_count_params_list_to_json_v(char *str, size_t len, void *p);
751 extern size_t discord_get_guild_prune_count_params_list_to_json(char *str, size_t len, struct discord_get_guild_prune_count_params **p);
752 
760  /* specs/discord/guild.endpoints-params.json:182:20
761  '{ "name": "days", "type":{ "base":"int" }, "inject_if_not":0}' */
762  int days;
763 
764  /* specs/discord/guild.endpoints-params.json:183:20
765  '{ "name": "compute_prune_count", "type":{ "base":"bool" }, "inject_if_not":false}' */
766  bool compute_prune_count;
767 
768  /* specs/discord/guild.endpoints-params.json:184:20
769  '{ "name": "include_roles", "type":{ "base":"ja_u64", "dec":"ntl" }, "inject_if_not":null}' */
770  ja_u64 **include_roles;
771 
772  /* specs/discord/guild.endpoints-params.json:185:20
773  '{ "name": "reason", "type":{ "base":"char", "dec":"*" }, "inject_if_not":null}' */
774  char *reason;
775 
776  // The following is metadata used to
777  // 1. control which field should be extracted/injected
778  // 2. record which field is presented(defined) in JSON
779  // 3. record which field is null in JSON
781  struct {
782  bool enable_arg_switches;
783  bool enable_record_defined;
784  bool enable_record_null;
785  void *arg_switches[4];
786  void *record_defined[4];
787  void *record_null[4];
788  } __M; // metadata
790 };
791 extern void discord_begin_guild_prune_params_cleanup_v(void *p);
792 extern void discord_begin_guild_prune_params_cleanup(struct discord_begin_guild_prune_params *p);
793 extern void discord_begin_guild_prune_params_init_v(void *p);
794 extern void discord_begin_guild_prune_params_init(struct discord_begin_guild_prune_params *p);
795 extern struct discord_begin_guild_prune_params * discord_begin_guild_prune_params_alloc();
796 extern void discord_begin_guild_prune_params_free_v(void *p);
797 extern void discord_begin_guild_prune_params_free(struct discord_begin_guild_prune_params *p);
798 extern void discord_begin_guild_prune_params_from_json_v(char *json, size_t len, void *p);
799 extern void discord_begin_guild_prune_params_from_json(char *json, size_t len, struct discord_begin_guild_prune_params *p);
800 extern size_t discord_begin_guild_prune_params_to_json_v(char *json, size_t len, void *p);
801 extern size_t discord_begin_guild_prune_params_to_json(char *json, size_t len, struct discord_begin_guild_prune_params *p);
802 extern size_t discord_begin_guild_prune_params_to_query_v(char *json, size_t len, void *p);
803 extern size_t discord_begin_guild_prune_params_to_query(char *json, size_t len, struct discord_begin_guild_prune_params *p);
804 extern void discord_begin_guild_prune_params_list_free_v(void **p);
805 extern void discord_begin_guild_prune_params_list_free(struct discord_begin_guild_prune_params **p);
806 extern void discord_begin_guild_prune_params_list_from_json_v(char *str, size_t len, void *p);
807 extern void discord_begin_guild_prune_params_list_from_json(char *str, size_t len, struct discord_begin_guild_prune_params ***p);
808 extern size_t discord_begin_guild_prune_params_list_to_json_v(char *str, size_t len, void *p);
809 extern size_t discord_begin_guild_prune_params_list_to_json(char *str, size_t len, struct discord_begin_guild_prune_params **p);
discord_create_guild_role_params
Create Guild Role.
Definition: guild.endpoints-params.h:535
discord_modify_guild_role_positions_params
Modify Guild Role Positions.
Definition: guild.endpoints-params.h:597
discord_begin_guild_prune_params
Begin Guild Prune.
Definition: guild.endpoints-params.h:759
discord_create_guild_params::channels
struct discord_channel ** channels
<
Definition: guild.endpoints-params.h:48
discord_channel_overwrite
Overwrite Structure.
Definition: channel.h:716
discord_modify_guild_role_params
Modify Guild Role.
Definition: guild.endpoints-params.h:647
discord_modify_guild_params::description
char * description
<
Definition: guild.endpoints-params.h:178
discord_search_guild_members_params
Search Guild Members.
Definition: guild.endpoints-params.h:361
u64_snowflake_t
uint64_t u64_snowflake_t
snowflake datatype
Definition: discord.h:32
discord_modify_guild_member_params
Modify Guild Member.
Definition: guild.endpoints-params.h:473
discord_channel
Channel Structure.
Definition: channel.h:31
discord_create_guild_channel_params
Create Guild Channel.
Definition: guild.endpoints-params.h:221
discord_add_guild_member_params
Add Guild Member.
Definition: guild.endpoints-params.h:411
discord_modify_guild_channel_positions_params
Modify Guild Channel Positions.
Definition: guild.endpoints-params.h:303
discord_get_guild_prune_count_params
Get Guild Prune Count.
Definition: guild.endpoints-params.h:709
discord_create_guild_params
Create Guild.
Definition: guild.endpoints-params.h:17
discord_modify_guild_params
Modify Guild.
Definition: guild.endpoints-params.h:103