Orca
A bot framework that is easy to reason about, easy to debug, and easy to use.
channel.endpoints-params.h
Go to the documentation of this file.
1 /* This file is generated from specs/discord/channel.endpoints-params.json, Please don't edit it. */
18  /* specs/discord/channel.endpoints-params.json:13:20
19  '{ "name": "name", "type":{ "base":"char", "dec":"*" }, "inject_if_not":null }' */
20  char *name;
21 
22  /* specs/discord/channel.endpoints-params.json:14:20
23  '{ "name": "icon", "type":{ "base":"char", "dec":"*" }, "inject_if_not":null }' */
24  char *icon;
25 
26  /* specs/discord/channel.endpoints-params.json:15:20
27  '{ "name": "type", "type":{ "base":"int" }}' */
28  int type;
29 
30  /* specs/discord/channel.endpoints-params.json:16:20
31  '{ "name": "position", "type":{ "base":"int" }, "inject_if_not":0 }' */
32  int position;
33 
34  /* specs/discord/channel.endpoints-params.json:17:20
35  '{ "name": "topic", "type":{ "base":"char", "dec":"*" }, "inject_if_not":null }' */
36  char *topic;
37 
38  /* specs/discord/channel.endpoints-params.json:18:20
39  '{ "name": "nsfw", "type":{ "base":"bool" }, "inject_if_not":false }' */
40  bool nsfw;
41 
42  /* specs/discord/channel.endpoints-params.json:19:20
43  '{ "name": "rate_limit_per_user", "type":{ "base":"int" }, "inject_if_not":0 }' */
44  int rate_limit_per_user;
45 
46  /* specs/discord/channel.endpoints-params.json:20:20
47  '{ "name": "bitrate", "type":{ "base":"int" }, "inject_if_not":0 }' */
48  int bitrate;
49 
50  /* specs/discord/channel.endpoints-params.json:21:20
51  '{ "name": "user_limit", "type":{ "base":"int" }, "inject_if_not":0 }' */
52  int user_limit;
53 
54  /* specs/discord/channel.endpoints-params.json:22:20
55  '{ "name": "permission_overwrites", "type":{ "base":"struct discord_channel_overwrite", "dec":"ntl" }, "inject_if_not":null }' */
56  struct discord_channel_overwrite **permission_overwrites;
57 
58  /* specs/discord/channel.endpoints-params.json:23:20
59  '{ "name": "parent_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "inject_if_not":0 }' */
60  u64_snowflake_t parent_id;
61 
62  /* specs/discord/channel.endpoints-params.json:24:20
63  '{ "name": "rtc_region", "type":{ "base":"char", "dec":"*" }, "inject_if_not":null }' */
64  char *rtc_region;
65 
66  /* specs/discord/channel.endpoints-params.json:25:20
67  '{ "name": "video_quality_mode", "type":{ "base":"int" }, "inject_if_not":0 }' */
68  int video_quality_mode;
69 
70  /* specs/discord/channel.endpoints-params.json:26:20
71  '{ "name": "archived", "type":{ "base":"bool" }, "inject_if_not":false }' */
72  bool archived;
73 
74  /* specs/discord/channel.endpoints-params.json:27:20
75  '{ "name": "auto_archive_duration", "type":{ "base":"int" }, "inject_if_not":0 }' */
76  int auto_archive_duration;
77 
78  /* specs/discord/channel.endpoints-params.json:28:20
79  '{ "name": "locked", "type":{ "base":"bool" }, "inject_if_not":false }' */
80  bool locked;
81 
82  // The following is metadata used to
83  // 1. control which field should be extracted/injected
84  // 2. record which field is presented(defined) in JSON
85  // 3. record which field is null in JSON
87  struct {
88  bool enable_arg_switches;
89  bool enable_record_defined;
90  bool enable_record_null;
91  void *arg_switches[16];
92  void *record_defined[16];
93  void *record_null[16];
94  } __M; // metadata
96 };
97 extern void discord_modify_channel_params_cleanup_v(void *p);
98 extern void discord_modify_channel_params_cleanup(struct discord_modify_channel_params *p);
99 extern void discord_modify_channel_params_init_v(void *p);
100 extern void discord_modify_channel_params_init(struct discord_modify_channel_params *p);
101 extern struct discord_modify_channel_params * discord_modify_channel_params_alloc();
102 extern void discord_modify_channel_params_free_v(void *p);
103 extern void discord_modify_channel_params_free(struct discord_modify_channel_params *p);
104 extern void discord_modify_channel_params_from_json_v(char *json, size_t len, void *p);
105 extern void discord_modify_channel_params_from_json(char *json, size_t len, struct discord_modify_channel_params *p);
106 extern size_t discord_modify_channel_params_to_json_v(char *json, size_t len, void *p);
107 extern size_t discord_modify_channel_params_to_json(char *json, size_t len, struct discord_modify_channel_params *p);
108 extern size_t discord_modify_channel_params_to_query_v(char *json, size_t len, void *p);
109 extern size_t discord_modify_channel_params_to_query(char *json, size_t len, struct discord_modify_channel_params *p);
110 extern void discord_modify_channel_params_list_free_v(void **p);
111 extern void discord_modify_channel_params_list_free(struct discord_modify_channel_params **p);
112 extern void discord_modify_channel_params_list_from_json_v(char *str, size_t len, void *p);
113 extern void discord_modify_channel_params_list_from_json(char *str, size_t len, struct discord_modify_channel_params ***p);
114 extern size_t discord_modify_channel_params_list_to_json_v(char *str, size_t len, void *p);
115 extern size_t discord_modify_channel_params_list_to_json(char *str, size_t len, struct discord_modify_channel_params **p);
116 
124  /* specs/discord/channel.endpoints-params.json:38:20
125  '{ "name": "after", "type":{ "base":"char", "dec":"*", "converter":"snowflake" }, "loc":"query"}' */
126  u64_snowflake_t after;
127 
128  /* specs/discord/channel.endpoints-params.json:39:20
129  '{ "name": "limit", "type":{ "base":"int" }, "loc":"query"}' */
130  int limit;
131 
132  // The following is metadata used to
133  // 1. control which field should be extracted/injected
134  // 2. record which field is presented(defined) in JSON
135  // 3. record which field is null in JSON
137  struct {
138  bool enable_arg_switches;
139  bool enable_record_defined;
140  bool enable_record_null;
141  void *arg_switches[2];
142  void *record_defined[2];
143  void *record_null[2];
144  } __M; // metadata
146 };
147 extern void discord_get_reactions_params_cleanup_v(void *p);
148 extern void discord_get_reactions_params_cleanup(struct discord_get_reactions_params *p);
149 extern void discord_get_reactions_params_init_v(void *p);
150 extern void discord_get_reactions_params_init(struct discord_get_reactions_params *p);
151 extern struct discord_get_reactions_params * discord_get_reactions_params_alloc();
152 extern void discord_get_reactions_params_free_v(void *p);
153 extern void discord_get_reactions_params_free(struct discord_get_reactions_params *p);
154 extern void discord_get_reactions_params_from_json_v(char *json, size_t len, void *p);
155 extern void discord_get_reactions_params_from_json(char *json, size_t len, struct discord_get_reactions_params *p);
156 extern size_t discord_get_reactions_params_to_json_v(char *json, size_t len, void *p);
157 extern size_t discord_get_reactions_params_to_json(char *json, size_t len, struct discord_get_reactions_params *p);
158 extern size_t discord_get_reactions_params_to_query_v(char *json, size_t len, void *p);
159 extern size_t discord_get_reactions_params_to_query(char *json, size_t len, struct discord_get_reactions_params *p);
160 extern void discord_get_reactions_params_list_free_v(void **p);
161 extern void discord_get_reactions_params_list_free(struct discord_get_reactions_params **p);
162 extern void discord_get_reactions_params_list_from_json_v(char *str, size_t len, void *p);
163 extern void discord_get_reactions_params_list_from_json(char *str, size_t len, struct discord_get_reactions_params ***p);
164 extern size_t discord_get_reactions_params_list_to_json_v(char *str, size_t len, void *p);
165 extern size_t discord_get_reactions_params_list_to_json(char *str, size_t len, struct discord_get_reactions_params **p);
166 
174  /* specs/discord/channel.endpoints-params.json:49:20
175  '{ "name": "allow", "type":{ "base":"s_as_hex_uint", "int_alias":"enum discord_permissions_bitwise_flags"}, "comment":"permission bit set" }' */
176  enum discord_permissions_bitwise_flags allow; // permission bit set
177 
178  /* specs/discord/channel.endpoints-params.json:50:20
179  '{ "name": "deny", "type":{ "base":"s_as_hex_uint", "int_alias":"enum discord_permissions_bitwise_flags"}, "comment":"permission bit set" }' */
180  enum discord_permissions_bitwise_flags deny; // permission bit set
181 
182  /* specs/discord/channel.endpoints-params.json:51:20
183  '{ "name": "type", "type":{ "base":"int" }}' */
184  int type;
185 
186  // The following is metadata used to
187  // 1. control which field should be extracted/injected
188  // 2. record which field is presented(defined) in JSON
189  // 3. record which field is null in JSON
191  struct {
192  bool enable_arg_switches;
193  bool enable_record_defined;
194  bool enable_record_null;
195  void *arg_switches[3];
196  void *record_defined[3];
197  void *record_null[3];
198  } __M; // metadata
200 };
201 extern void discord_edit_channel_permissions_params_cleanup_v(void *p);
202 extern void discord_edit_channel_permissions_params_cleanup(struct discord_edit_channel_permissions_params *p);
203 extern void discord_edit_channel_permissions_params_init_v(void *p);
204 extern void discord_edit_channel_permissions_params_init(struct discord_edit_channel_permissions_params *p);
205 extern struct discord_edit_channel_permissions_params * discord_edit_channel_permissions_params_alloc();
206 extern void discord_edit_channel_permissions_params_free_v(void *p);
207 extern void discord_edit_channel_permissions_params_free(struct discord_edit_channel_permissions_params *p);
208 extern void discord_edit_channel_permissions_params_from_json_v(char *json, size_t len, void *p);
209 extern void discord_edit_channel_permissions_params_from_json(char *json, size_t len, struct discord_edit_channel_permissions_params *p);
210 extern size_t discord_edit_channel_permissions_params_to_json_v(char *json, size_t len, void *p);
211 extern size_t discord_edit_channel_permissions_params_to_json(char *json, size_t len, struct discord_edit_channel_permissions_params *p);
212 extern size_t discord_edit_channel_permissions_params_to_query_v(char *json, size_t len, void *p);
213 extern size_t discord_edit_channel_permissions_params_to_query(char *json, size_t len, struct discord_edit_channel_permissions_params *p);
214 extern void discord_edit_channel_permissions_params_list_free_v(void **p);
215 extern void discord_edit_channel_permissions_params_list_free(struct discord_edit_channel_permissions_params **p);
216 extern void discord_edit_channel_permissions_params_list_from_json_v(char *str, size_t len, void *p);
217 extern void discord_edit_channel_permissions_params_list_from_json(char *str, size_t len, struct discord_edit_channel_permissions_params ***p);
218 extern size_t discord_edit_channel_permissions_params_list_to_json_v(char *str, size_t len, void *p);
219 extern size_t discord_edit_channel_permissions_params_list_to_json(char *str, size_t len, struct discord_edit_channel_permissions_params **p);
220 
228  /* specs/discord/channel.endpoints-params.json:61:20
229  '{ "name": "webhook_channel_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake"} }' */
230  u64_snowflake_t webhook_channel_id;
231 
232  // The following is metadata used to
233  // 1. control which field should be extracted/injected
234  // 2. record which field is presented(defined) in JSON
235  // 3. record which field is null in JSON
237  struct {
238  bool enable_arg_switches;
239  bool enable_record_defined;
240  bool enable_record_null;
241  void *arg_switches[1];
242  void *record_defined[1];
243  void *record_null[1];
244  } __M; // metadata
246 };
247 extern void discord_follow_news_channel_params_cleanup_v(void *p);
248 extern void discord_follow_news_channel_params_cleanup(struct discord_follow_news_channel_params *p);
249 extern void discord_follow_news_channel_params_init_v(void *p);
250 extern void discord_follow_news_channel_params_init(struct discord_follow_news_channel_params *p);
251 extern struct discord_follow_news_channel_params * discord_follow_news_channel_params_alloc();
252 extern void discord_follow_news_channel_params_free_v(void *p);
253 extern void discord_follow_news_channel_params_free(struct discord_follow_news_channel_params *p);
254 extern void discord_follow_news_channel_params_from_json_v(char *json, size_t len, void *p);
255 extern void discord_follow_news_channel_params_from_json(char *json, size_t len, struct discord_follow_news_channel_params *p);
256 extern size_t discord_follow_news_channel_params_to_json_v(char *json, size_t len, void *p);
257 extern size_t discord_follow_news_channel_params_to_json(char *json, size_t len, struct discord_follow_news_channel_params *p);
258 extern size_t discord_follow_news_channel_params_to_query_v(char *json, size_t len, void *p);
259 extern size_t discord_follow_news_channel_params_to_query(char *json, size_t len, struct discord_follow_news_channel_params *p);
260 extern void discord_follow_news_channel_params_list_free_v(void **p);
261 extern void discord_follow_news_channel_params_list_free(struct discord_follow_news_channel_params **p);
262 extern void discord_follow_news_channel_params_list_from_json_v(char *str, size_t len, void *p);
263 extern void discord_follow_news_channel_params_list_from_json(char *str, size_t len, struct discord_follow_news_channel_params ***p);
264 extern size_t discord_follow_news_channel_params_list_to_json_v(char *str, size_t len, void *p);
265 extern size_t discord_follow_news_channel_params_list_to_json(char *str, size_t len, struct discord_follow_news_channel_params **p);
266 
274  /* specs/discord/channel.endpoints-params.json:71:20
275  '{ "name": "max_age", "type":{ "base":"int" }}' */
276  int max_age;
277 
278  /* specs/discord/channel.endpoints-params.json:72:20
279  '{ "name": "max_uses", "type":{ "base":"int" }}' */
280  int max_uses;
281 
282  /* specs/discord/channel.endpoints-params.json:73:20
283  '{ "name": "temporary", "type":{ "base":"bool" }}' */
284  bool temporary;
285 
286  /* specs/discord/channel.endpoints-params.json:74:20
287  '{ "name": "unique", "type":{ "base":"bool" }}' */
288  bool unique;
289 
290  /* specs/discord/channel.endpoints-params.json:75:20
291  '{ "name": "target_type", "type":{ "base":"int" }, "option":true, "inject_if_not":0 }' */
292  int target_type;
293 
294  /* specs/discord/channel.endpoints-params.json:76:20
295  '{ "name": "target_user_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake"}, "option":true, "inject_if_not":0 }' */
296  u64_snowflake_t target_user_id;
297 
298  /* specs/discord/channel.endpoints-params.json:77:20
299  '{ "name": "target_application_id", "type":{ "base":"char", "dec":"*", "converter":"snowflake"}, "option":true, "inject_if_not":0 }' */
300  u64_snowflake_t target_application_id;
301 
302  // The following is metadata used to
303  // 1. control which field should be extracted/injected
304  // 2. record which field is presented(defined) in JSON
305  // 3. record which field is null in JSON
307  struct {
308  bool enable_arg_switches;
309  bool enable_record_defined;
310  bool enable_record_null;
311  void *arg_switches[7];
312  void *record_defined[7];
313  void *record_null[7];
314  } __M; // metadata
316 };
317 extern void discord_create_channel_invite_params_cleanup_v(void *p);
318 extern void discord_create_channel_invite_params_cleanup(struct discord_create_channel_invite_params *p);
319 extern void discord_create_channel_invite_params_init_v(void *p);
320 extern void discord_create_channel_invite_params_init(struct discord_create_channel_invite_params *p);
321 extern struct discord_create_channel_invite_params * discord_create_channel_invite_params_alloc();
322 extern void discord_create_channel_invite_params_free_v(void *p);
323 extern void discord_create_channel_invite_params_free(struct discord_create_channel_invite_params *p);
324 extern void discord_create_channel_invite_params_from_json_v(char *json, size_t len, void *p);
325 extern void discord_create_channel_invite_params_from_json(char *json, size_t len, struct discord_create_channel_invite_params *p);
326 extern size_t discord_create_channel_invite_params_to_json_v(char *json, size_t len, void *p);
327 extern size_t discord_create_channel_invite_params_to_json(char *json, size_t len, struct discord_create_channel_invite_params *p);
328 extern size_t discord_create_channel_invite_params_to_query_v(char *json, size_t len, void *p);
329 extern size_t discord_create_channel_invite_params_to_query(char *json, size_t len, struct discord_create_channel_invite_params *p);
330 extern void discord_create_channel_invite_params_list_free_v(void **p);
331 extern void discord_create_channel_invite_params_list_free(struct discord_create_channel_invite_params **p);
332 extern void discord_create_channel_invite_params_list_from_json_v(char *str, size_t len, void *p);
333 extern void discord_create_channel_invite_params_list_from_json(char *str, size_t len, struct discord_create_channel_invite_params ***p);
334 extern size_t discord_create_channel_invite_params_list_to_json_v(char *str, size_t len, void *p);
335 extern size_t discord_create_channel_invite_params_list_to_json(char *str, size_t len, struct discord_create_channel_invite_params **p);
336 
344  /* specs/discord/channel.endpoints-params.json:87:20
345  '{ "name": "access_token", "type":{ "base":"char", "dec":"*" }}' */
346  char *access_token;
347 
348  /* specs/discord/channel.endpoints-params.json:88:20
349  '{ "name": "nick", "type":{ "base":"char", "dec":"*" }}' */
350  char *nick;
351 
352  // The following is metadata used to
353  // 1. control which field should be extracted/injected
354  // 2. record which field is presented(defined) in JSON
355  // 3. record which field is null in JSON
357  struct {
358  bool enable_arg_switches;
359  bool enable_record_defined;
360  bool enable_record_null;
361  void *arg_switches[2];
362  void *record_defined[2];
363  void *record_null[2];
364  } __M; // metadata
366 };
367 extern void discord_group_dm_add_recipient_params_cleanup_v(void *p);
368 extern void discord_group_dm_add_recipient_params_cleanup(struct discord_group_dm_add_recipient_params *p);
369 extern void discord_group_dm_add_recipient_params_init_v(void *p);
370 extern void discord_group_dm_add_recipient_params_init(struct discord_group_dm_add_recipient_params *p);
371 extern struct discord_group_dm_add_recipient_params * discord_group_dm_add_recipient_params_alloc();
372 extern void discord_group_dm_add_recipient_params_free_v(void *p);
373 extern void discord_group_dm_add_recipient_params_free(struct discord_group_dm_add_recipient_params *p);
374 extern void discord_group_dm_add_recipient_params_from_json_v(char *json, size_t len, void *p);
375 extern void discord_group_dm_add_recipient_params_from_json(char *json, size_t len, struct discord_group_dm_add_recipient_params *p);
376 extern size_t discord_group_dm_add_recipient_params_to_json_v(char *json, size_t len, void *p);
377 extern size_t discord_group_dm_add_recipient_params_to_json(char *json, size_t len, struct discord_group_dm_add_recipient_params *p);
378 extern size_t discord_group_dm_add_recipient_params_to_query_v(char *json, size_t len, void *p);
379 extern size_t discord_group_dm_add_recipient_params_to_query(char *json, size_t len, struct discord_group_dm_add_recipient_params *p);
380 extern void discord_group_dm_add_recipient_params_list_free_v(void **p);
381 extern void discord_group_dm_add_recipient_params_list_free(struct discord_group_dm_add_recipient_params **p);
382 extern void discord_group_dm_add_recipient_params_list_from_json_v(char *str, size_t len, void *p);
383 extern void discord_group_dm_add_recipient_params_list_from_json(char *str, size_t len, struct discord_group_dm_add_recipient_params ***p);
384 extern size_t discord_group_dm_add_recipient_params_list_to_json_v(char *str, size_t len, void *p);
385 extern size_t discord_group_dm_add_recipient_params_list_to_json(char *str, size_t len, struct discord_group_dm_add_recipient_params **p);
386 
394  /* specs/discord/channel.endpoints-params.json:98:20
395  '{ "name": "name", "type":{ "base":"char", "dec":"*" }, "inject_if_not":null }' */
396  char *name;
397 
398  /* specs/discord/channel.endpoints-params.json:99:20
399  '{ "name": "auto_archive_duration", "type":{ "base":"int" }, "inject_if_not":0 }' */
400  int auto_archive_duration;
401 
402  // The following is metadata used to
403  // 1. control which field should be extracted/injected
404  // 2. record which field is presented(defined) in JSON
405  // 3. record which field is null in JSON
407  struct {
408  bool enable_arg_switches;
409  bool enable_record_defined;
410  bool enable_record_null;
411  void *arg_switches[2];
412  void *record_defined[2];
413  void *record_null[2];
414  } __M; // metadata
416 };
417 extern void discord_start_thread_with_message_params_cleanup_v(void *p);
418 extern void discord_start_thread_with_message_params_cleanup(struct discord_start_thread_with_message_params *p);
419 extern void discord_start_thread_with_message_params_init_v(void *p);
420 extern void discord_start_thread_with_message_params_init(struct discord_start_thread_with_message_params *p);
421 extern struct discord_start_thread_with_message_params * discord_start_thread_with_message_params_alloc();
422 extern void discord_start_thread_with_message_params_free_v(void *p);
423 extern void discord_start_thread_with_message_params_free(struct discord_start_thread_with_message_params *p);
424 extern void discord_start_thread_with_message_params_from_json_v(char *json, size_t len, void *p);
425 extern void discord_start_thread_with_message_params_from_json(char *json, size_t len, struct discord_start_thread_with_message_params *p);
426 extern size_t discord_start_thread_with_message_params_to_json_v(char *json, size_t len, void *p);
427 extern size_t discord_start_thread_with_message_params_to_json(char *json, size_t len, struct discord_start_thread_with_message_params *p);
428 extern size_t discord_start_thread_with_message_params_to_query_v(char *json, size_t len, void *p);
429 extern size_t discord_start_thread_with_message_params_to_query(char *json, size_t len, struct discord_start_thread_with_message_params *p);
430 extern void discord_start_thread_with_message_params_list_free_v(void **p);
431 extern void discord_start_thread_with_message_params_list_free(struct discord_start_thread_with_message_params **p);
432 extern void discord_start_thread_with_message_params_list_from_json_v(char *str, size_t len, void *p);
433 extern void discord_start_thread_with_message_params_list_from_json(char *str, size_t len, struct discord_start_thread_with_message_params ***p);
434 extern size_t discord_start_thread_with_message_params_list_to_json_v(char *str, size_t len, void *p);
435 extern size_t discord_start_thread_with_message_params_list_to_json(char *str, size_t len, struct discord_start_thread_with_message_params **p);
436 
444  /* specs/discord/channel.endpoints-params.json:109:20
445  '{ "name": "name", "type":{ "base":"char", "dec":"*" } }' */
446  char *name;
447 
448  /* specs/discord/channel.endpoints-params.json:110:20
449  '{ "name": "auto_archive_duration", "type":{ "base":"int" }, "inject_if_not":0 }' */
450  int auto_archive_duration;
451 
452  // The following is metadata used to
453  // 1. control which field should be extracted/injected
454  // 2. record which field is presented(defined) in JSON
455  // 3. record which field is null in JSON
457  struct {
458  bool enable_arg_switches;
459  bool enable_record_defined;
460  bool enable_record_null;
461  void *arg_switches[2];
462  void *record_defined[2];
463  void *record_null[2];
464  } __M; // metadata
466 };
467 extern void discord_start_thread_without_message_params_cleanup_v(void *p);
468 extern void discord_start_thread_without_message_params_cleanup(struct discord_start_thread_without_message_params *p);
469 extern void discord_start_thread_without_message_params_init_v(void *p);
470 extern void discord_start_thread_without_message_params_init(struct discord_start_thread_without_message_params *p);
471 extern struct discord_start_thread_without_message_params * discord_start_thread_without_message_params_alloc();
472 extern void discord_start_thread_without_message_params_free_v(void *p);
473 extern void discord_start_thread_without_message_params_free(struct discord_start_thread_without_message_params *p);
474 extern void discord_start_thread_without_message_params_from_json_v(char *json, size_t len, void *p);
475 extern void discord_start_thread_without_message_params_from_json(char *json, size_t len, struct discord_start_thread_without_message_params *p);
476 extern size_t discord_start_thread_without_message_params_to_json_v(char *json, size_t len, void *p);
477 extern size_t discord_start_thread_without_message_params_to_json(char *json, size_t len, struct discord_start_thread_without_message_params *p);
478 extern size_t discord_start_thread_without_message_params_to_query_v(char *json, size_t len, void *p);
479 extern size_t discord_start_thread_without_message_params_to_query(char *json, size_t len, struct discord_start_thread_without_message_params *p);
480 extern void discord_start_thread_without_message_params_list_free_v(void **p);
481 extern void discord_start_thread_without_message_params_list_free(struct discord_start_thread_without_message_params **p);
482 extern void discord_start_thread_without_message_params_list_from_json_v(char *str, size_t len, void *p);
483 extern void discord_start_thread_without_message_params_list_from_json(char *str, size_t len, struct discord_start_thread_without_message_params ***p);
484 extern size_t discord_start_thread_without_message_params_list_to_json_v(char *str, size_t len, void *p);
485 extern size_t discord_start_thread_without_message_params_list_to_json(char *str, size_t len, struct discord_start_thread_without_message_params **p);
486 
494  /* specs/discord/channel.endpoints-params.json:120:20
495  '{ "name": "threads", "type":{ "base":"struct discord_channel", "dec":"ntl" } }' */
496  struct discord_channel **threads;
497 
498  /* specs/discord/channel.endpoints-params.json:121:20
499  '{ "name": "members", "type":{ "base":"struct discord_thread_member", "dec":"ntl" } }' */
500  struct discord_thread_member **members;
501 
502  /* specs/discord/channel.endpoints-params.json:122:20
503  '{ "name": "has_more", "type":{ "base":"bool" } }' */
504  bool has_more;
505 
506  // The following is metadata used to
507  // 1. control which field should be extracted/injected
508  // 2. record which field is presented(defined) in JSON
509  // 3. record which field is null in JSON
511  struct {
512  bool enable_arg_switches;
513  bool enable_record_defined;
514  bool enable_record_null;
515  void *arg_switches[3];
516  void *record_defined[3];
517  void *record_null[3];
518  } __M; // metadata
520 };
521 extern void discord_thread_response_body_cleanup_v(void *p);
522 extern void discord_thread_response_body_cleanup(struct discord_thread_response_body *p);
523 extern void discord_thread_response_body_init_v(void *p);
524 extern void discord_thread_response_body_init(struct discord_thread_response_body *p);
525 extern struct discord_thread_response_body * discord_thread_response_body_alloc();
526 extern void discord_thread_response_body_free_v(void *p);
527 extern void discord_thread_response_body_free(struct discord_thread_response_body *p);
528 extern void discord_thread_response_body_from_json_v(char *json, size_t len, void *p);
529 extern void discord_thread_response_body_from_json(char *json, size_t len, struct discord_thread_response_body *p);
530 extern size_t discord_thread_response_body_to_json_v(char *json, size_t len, void *p);
531 extern size_t discord_thread_response_body_to_json(char *json, size_t len, struct discord_thread_response_body *p);
532 extern size_t discord_thread_response_body_to_query_v(char *json, size_t len, void *p);
533 extern size_t discord_thread_response_body_to_query(char *json, size_t len, struct discord_thread_response_body *p);
534 extern void discord_thread_response_body_list_free_v(void **p);
535 extern void discord_thread_response_body_list_free(struct discord_thread_response_body **p);
536 extern void discord_thread_response_body_list_from_json_v(char *str, size_t len, void *p);
537 extern void discord_thread_response_body_list_from_json(char *str, size_t len, struct discord_thread_response_body ***p);
538 extern size_t discord_thread_response_body_list_to_json_v(char *str, size_t len, void *p);
539 extern size_t discord_thread_response_body_list_to_json(char *str, size_t len, struct discord_thread_response_body **p);
discord_edit_channel_permissions_params
Edit Channel Permissions.
Definition: channel.endpoints-params.h:173
discord_modify_channel_params
Modify Channel.
Definition: channel.endpoints-params.h:17
discord_follow_news_channel_params
Follow News Channel.
Definition: channel.endpoints-params.h:227
discord_group_dm_add_recipient_params
Group DM Add Recipient.
Definition: channel.endpoints-params.h:343
discord_channel_overwrite
Overwrite Structure.
Definition: channel.h:716
discord_get_reactions_params
Get Reactions.
Definition: channel.endpoints-params.h:123
discord_thread_member
Thread Member Object.
Definition: channel.h:838
u64_snowflake_t
uint64_t u64_snowflake_t
snowflake datatype
Definition: discord.h:32
discord_create_channel_invite_params
Create Channel Invite.
Definition: channel.endpoints-params.h:273
discord_thread_response_body
List Active Threads.
Definition: channel.endpoints-params.h:493
discord_start_thread_without_message_params
Start Thread without Message.
Definition: channel.endpoints-params.h:443
discord_channel
Channel Structure.
Definition: channel.h:31
discord_start_thread_with_message_params
Start Thread with Message.
Definition: channel.endpoints-params.h:393