Orca
A bot framework that is easy to reason about, easy to debug, and easy to use.
user.endpoints-params.h
Go to the documentation of this file.
1 /* This file is generated from specs/discord/user.endpoints-params.json, Please don't edit it. */
18  /* specs/discord/user.endpoints-params.json:13:20
19  '{ "name": "username", "type":{ "base":"char", "dec":"*" }}' */
20  char *username;
21 
22  /* specs/discord/user.endpoints-params.json:14:20
23  '{ "name": "avatar", "type":{ "base":"char", "dec":"*"}, "comment":"base64 encoded image data"}' */
24  char *avatar; // base64 encoded image data
25 
26  // The following is metadata used to
27  // 1. control which field should be extracted/injected
28  // 2. record which field is presented(defined) in JSON
29  // 3. record which field is null in JSON
31  struct {
32  bool enable_arg_switches;
33  bool enable_record_defined;
34  bool enable_record_null;
35  void *arg_switches[2];
36  void *record_defined[2];
37  void *record_null[2];
38  } __M; // metadata
40 };
41 extern void discord_modify_current_user_params_cleanup_v(void *p);
42 extern void discord_modify_current_user_params_cleanup(struct discord_modify_current_user_params *p);
43 extern void discord_modify_current_user_params_init_v(void *p);
44 extern void discord_modify_current_user_params_init(struct discord_modify_current_user_params *p);
45 extern struct discord_modify_current_user_params * discord_modify_current_user_params_alloc();
46 extern void discord_modify_current_user_params_free_v(void *p);
47 extern void discord_modify_current_user_params_free(struct discord_modify_current_user_params *p);
48 extern void discord_modify_current_user_params_from_json_v(char *json, size_t len, void *p);
49 extern void discord_modify_current_user_params_from_json(char *json, size_t len, struct discord_modify_current_user_params *p);
50 extern size_t discord_modify_current_user_params_to_json_v(char *json, size_t len, void *p);
51 extern size_t discord_modify_current_user_params_to_json(char *json, size_t len, struct discord_modify_current_user_params *p);
52 extern size_t discord_modify_current_user_params_to_query_v(char *json, size_t len, void *p);
53 extern size_t discord_modify_current_user_params_to_query(char *json, size_t len, struct discord_modify_current_user_params *p);
54 extern void discord_modify_current_user_params_list_free_v(void **p);
55 extern void discord_modify_current_user_params_list_free(struct discord_modify_current_user_params **p);
56 extern void discord_modify_current_user_params_list_from_json_v(char *str, size_t len, void *p);
57 extern void discord_modify_current_user_params_list_from_json(char *str, size_t len, struct discord_modify_current_user_params ***p);
58 extern size_t discord_modify_current_user_params_list_to_json_v(char *str, size_t len, void *p);
59 extern size_t discord_modify_current_user_params_list_to_json(char *str, size_t len, struct discord_modify_current_user_params **p);
60 
68  /* specs/discord/user.endpoints-params.json:24:20
69  '{ "name": "access_tokens", "type":{ "base":"ja_str", "dec":"ntl" },
70  "comment":"access tokens of users that have granted your app the gdm.join scope"}' */
71  ja_str **access_tokens; // access tokens of users that have granted your app the gdm.join scope
72 
73  /* specs/discord/user.endpoints-params.json:26:19
74  '{ "name":"nicks", "type":{ "base":"ja_u64", "dec":"ntl"},
75  "comment":"ia dictionary of user ids to their respective nicknames"}' */
76  ja_u64 **nicks; // ia dictionary of user ids to their respective nicknames
77 
78  // The following is metadata used to
79  // 1. control which field should be extracted/injected
80  // 2. record which field is presented(defined) in JSON
81  // 3. record which field is null in JSON
83  struct {
84  bool enable_arg_switches;
85  bool enable_record_defined;
86  bool enable_record_null;
87  void *arg_switches[2];
88  void *record_defined[2];
89  void *record_null[2];
90  } __M; // metadata
92 };
93 extern void discord_create_group_dm_params_cleanup_v(void *p);
94 extern void discord_create_group_dm_params_cleanup(struct discord_create_group_dm_params *p);
95 extern void discord_create_group_dm_params_init_v(void *p);
96 extern void discord_create_group_dm_params_init(struct discord_create_group_dm_params *p);
97 extern struct discord_create_group_dm_params * discord_create_group_dm_params_alloc();
98 extern void discord_create_group_dm_params_free_v(void *p);
99 extern void discord_create_group_dm_params_free(struct discord_create_group_dm_params *p);
100 extern void discord_create_group_dm_params_from_json_v(char *json, size_t len, void *p);
101 extern void discord_create_group_dm_params_from_json(char *json, size_t len, struct discord_create_group_dm_params *p);
102 extern size_t discord_create_group_dm_params_to_json_v(char *json, size_t len, void *p);
103 extern size_t discord_create_group_dm_params_to_json(char *json, size_t len, struct discord_create_group_dm_params *p);
104 extern size_t discord_create_group_dm_params_to_query_v(char *json, size_t len, void *p);
105 extern size_t discord_create_group_dm_params_to_query(char *json, size_t len, struct discord_create_group_dm_params *p);
106 extern void discord_create_group_dm_params_list_free_v(void **p);
107 extern void discord_create_group_dm_params_list_free(struct discord_create_group_dm_params **p);
108 extern void discord_create_group_dm_params_list_from_json_v(char *str, size_t len, void *p);
109 extern void discord_create_group_dm_params_list_from_json(char *str, size_t len, struct discord_create_group_dm_params ***p);
110 extern size_t discord_create_group_dm_params_list_to_json_v(char *str, size_t len, void *p);
111 extern size_t discord_create_group_dm_params_list_to_json(char *str, size_t len, struct discord_create_group_dm_params **p);
discord_modify_current_user_params
Modify Current User.
Definition: user.endpoints-params.h:17
discord_create_group_dm_params
Create Group DM.
Definition: user.endpoints-params.h:67