12 enum discord_permissions_bitwise_flags {
13 DISCORD_PERMISSIONS_ZERO = 0,
14 DISCORD_PERMISSIONS_CREATE_INSTANT_INVITE = 1,
15 DISCORD_PERMISSIONS_KICK_MEMBERS = 2,
16 DISCORD_PERMISSIONS_BAN_MEMBERS = 4,
17 DISCORD_PERMISSIONS_ADMINISTRATOR = 8,
18 DISCORD_PERMISSIONS_MANAGE_CHANNELS = 16,
19 DISCORD_PERMISSIONS_MANAGE_GUILD = 32,
20 DISCORD_PERMISSIONS_ADD_REACTIONS = 64,
21 DISCORD_PERMISSIONS_VIEW_AUDIT_LOG = 128,
22 DISCORD_PERMISSIONS_PRIORITY_SPEAKER = 256,
23 DISCORD_PERMISSIONS_STREAM = 512,
24 DISCORD_PERMISSIONS_VIEW_CHANNEL = 1024,
25 DISCORD_PERMISSIONS_SEND_MESSAGES = 2048,
26 DISCORD_PERMISSIONS_SEND_TTS_MESSAGES = 4096,
27 DISCORD_PERMISSIONS_MANAGE_MESSAGES = 8192,
28 DISCORD_PERMISSIONS_EMBED_LINKS = 16384,
29 DISCORD_PERMISSIONS_ATTACH_FILES = 32768,
30 DISCORD_PERMISSIONS_READ_MESSAGE_HISTORY = 65536,
31 DISCORD_PERMISSIONS_MENTION_EVERYONE = 131072,
32 DISCORD_PERMISSIONS_USE_EXTERNAL_EMOJIS = 262144,
33 DISCORD_PERMISSIONS_VIEW_GUILD_INSIGHTS = 524288,
34 DISCORD_PERMISSIONS_CONNECT = 1048576,
35 DISCORD_PERMISSIONS_SPEAK = 2097152,
36 DISCORD_PERMISSIONS_MUTE_MEMBERS = 4194304,
37 DISCORD_PERMISSIONS_DEAFEN_MEMBERS = 8388608,
38 DISCORD_PERMISSIONS_MOVE_MEMBERS = 16777216,
39 DISCORD_PERMISSIONS_USE_VAD = 33554432,
40 DISCORD_PERMISSIONS_CHANGE_NICKNAME = 67108864,
41 DISCORD_PERMISSIONS_MANAGE_NICKNAMES = 134217728,
42 DISCORD_PERMISSIONS_MANAGE_ROLES = 268435456,
43 DISCORD_PERMISSIONS_MANAGE_WEBHOOKS = 536870912,
44 DISCORD_PERMISSIONS_MANAGE_EMOJIS = 1073741824,
46 extern char* discord_permissions_bitwise_flags_to_string(
enum discord_permissions_bitwise_flags);
47 extern enum discord_permissions_bitwise_flags discord_permissions_bitwise_flags_from_string(
char*);
48 extern bool discord_permissions_bitwise_flags_has(
enum discord_permissions_bitwise_flags,
char*);
63 char name[MAX_NAME_LEN];
99 bool enable_arg_switches;
100 bool enable_record_defined;
101 bool enable_record_null;
102 void *arg_switches[9];
103 void *record_defined[9];
104 void *record_null[9];
108 extern void discord_permissions_role_cleanup_v(
void *p);
110 extern void discord_permissions_role_init_v(
void *p);
113 extern void discord_permissions_role_free_v(
void *p);
115 extern void discord_permissions_role_from_json_v(
char *json,
size_t len,
void *p);
117 extern size_t discord_permissions_role_to_json_v(
char *json,
size_t len,
void *p);
119 extern size_t discord_permissions_role_to_query_v(
char *json,
size_t len,
void *p);
121 extern void discord_permissions_role_list_free_v(
void **p);
123 extern void discord_permissions_role_list_from_json_v(
char *str,
size_t len,
void *p);
125 extern size_t discord_permissions_role_list_to_json_v(
char *str,
size_t len,
void *p);
145 int premium_subscriber;
153 bool enable_arg_switches;
154 bool enable_record_defined;
155 bool enable_record_null;
156 void *arg_switches[3];
157 void *record_defined[3];
158 void *record_null[3];
162 extern void discord_permissions_role_tags_cleanup_v(
void *p);
164 extern void discord_permissions_role_tags_init_v(
void *p);
167 extern void discord_permissions_role_tags_free_v(
void *p);
169 extern void discord_permissions_role_tags_from_json_v(
char *json,
size_t len,
void *p);
171 extern size_t discord_permissions_role_tags_to_json_v(
char *json,
size_t len,
void *p);
173 extern size_t discord_permissions_role_tags_to_query_v(
char *json,
size_t len,
void *p);
175 extern void discord_permissions_role_tags_list_free_v(
void **p);
177 extern void discord_permissions_role_tags_list_from_json_v(
char *str,
size_t len,
void *p);
179 extern size_t discord_permissions_role_tags_list_to_json_v(
char *str,
size_t len,
void *p);