Orca
A bot framework that is easy to reason about, easy to debug, and easy to use.
Classes | Enumerations | Functions
permissions.h File Reference

Specs generated file. More...

Go to the source code of this file.

Classes

struct  discord_permissions_role
 Role Structure. More...
 
struct  discord_permissions_role_tags
 Role Tags Structure. More...
 

Enumerations

enum  discord_permissions_bitwise_flags {
  DISCORD_PERMISSIONS_ZERO = 0, DISCORD_PERMISSIONS_CREATE_INSTANT_INVITE = 1, DISCORD_PERMISSIONS_KICK_MEMBERS = 2, DISCORD_PERMISSIONS_BAN_MEMBERS = 4,
  DISCORD_PERMISSIONS_ADMINISTRATOR = 8, DISCORD_PERMISSIONS_MANAGE_CHANNELS = 16, DISCORD_PERMISSIONS_MANAGE_GUILD = 32, DISCORD_PERMISSIONS_ADD_REACTIONS = 64,
  DISCORD_PERMISSIONS_VIEW_AUDIT_LOG = 128, DISCORD_PERMISSIONS_PRIORITY_SPEAKER = 256, DISCORD_PERMISSIONS_STREAM = 512, DISCORD_PERMISSIONS_VIEW_CHANNEL = 1024,
  DISCORD_PERMISSIONS_SEND_MESSAGES = 2048, DISCORD_PERMISSIONS_SEND_TTS_MESSAGES = 4096, DISCORD_PERMISSIONS_MANAGE_MESSAGES = 8192, DISCORD_PERMISSIONS_EMBED_LINKS = 16384,
  DISCORD_PERMISSIONS_ATTACH_FILES = 32768, DISCORD_PERMISSIONS_READ_MESSAGE_HISTORY = 65536, DISCORD_PERMISSIONS_MENTION_EVERYONE = 131072, DISCORD_PERMISSIONS_USE_EXTERNAL_EMOJIS = 262144,
  DISCORD_PERMISSIONS_VIEW_GUILD_INSIGHTS = 524288, DISCORD_PERMISSIONS_CONNECT = 1048576, DISCORD_PERMISSIONS_SPEAK = 2097152, DISCORD_PERMISSIONS_MUTE_MEMBERS = 4194304,
  DISCORD_PERMISSIONS_DEAFEN_MEMBERS = 8388608, DISCORD_PERMISSIONS_MOVE_MEMBERS = 16777216, DISCORD_PERMISSIONS_USE_VAD = 33554432, DISCORD_PERMISSIONS_CHANGE_NICKNAME = 67108864,
  DISCORD_PERMISSIONS_MANAGE_NICKNAMES = 134217728, DISCORD_PERMISSIONS_MANAGE_ROLES = 268435456, DISCORD_PERMISSIONS_MANAGE_WEBHOOKS = 536870912, DISCORD_PERMISSIONS_MANAGE_EMOJIS = 1073741824
}
 

Functions

char * discord_permissions_bitwise_flags_to_string (enum discord_permissions_bitwise_flags)
 
enum discord_permissions_bitwise_flags discord_permissions_bitwise_flags_from_string (char *)
 
bool discord_permissions_bitwise_flags_has (enum discord_permissions_bitwise_flags, char *)
 
void discord_permissions_role_cleanup_v (void *p)
 
void discord_permissions_role_cleanup (struct discord_permissions_role *p)
 
void discord_permissions_role_init_v (void *p)
 
void discord_permissions_role_init (struct discord_permissions_role *p)
 
struct discord_permissions_rolediscord_permissions_role_alloc ()
 
void discord_permissions_role_free_v (void *p)
 
void discord_permissions_role_free (struct discord_permissions_role *p)
 
void discord_permissions_role_from_json_v (char *json, size_t len, void *p)
 
void discord_permissions_role_from_json (char *json, size_t len, struct discord_permissions_role *p)
 
size_t discord_permissions_role_to_json_v (char *json, size_t len, void *p)
 
size_t discord_permissions_role_to_json (char *json, size_t len, struct discord_permissions_role *p)
 
size_t discord_permissions_role_to_query_v (char *json, size_t len, void *p)
 
size_t discord_permissions_role_to_query (char *json, size_t len, struct discord_permissions_role *p)
 
void discord_permissions_role_list_free_v (void **p)
 
void discord_permissions_role_list_free (struct discord_permissions_role **p)
 
void discord_permissions_role_list_from_json_v (char *str, size_t len, void *p)
 
void discord_permissions_role_list_from_json (char *str, size_t len, struct discord_permissions_role ***p)
 
size_t discord_permissions_role_list_to_json_v (char *str, size_t len, void *p)
 
size_t discord_permissions_role_list_to_json (char *str, size_t len, struct discord_permissions_role **p)
 
void discord_permissions_role_tags_cleanup_v (void *p)
 
void discord_permissions_role_tags_cleanup (struct discord_permissions_role_tags *p)
 
void discord_permissions_role_tags_init_v (void *p)
 
void discord_permissions_role_tags_init (struct discord_permissions_role_tags *p)
 
struct discord_permissions_role_tagsdiscord_permissions_role_tags_alloc ()
 
void discord_permissions_role_tags_free_v (void *p)
 
void discord_permissions_role_tags_free (struct discord_permissions_role_tags *p)
 
void discord_permissions_role_tags_from_json_v (char *json, size_t len, void *p)
 
void discord_permissions_role_tags_from_json (char *json, size_t len, struct discord_permissions_role_tags *p)
 
size_t discord_permissions_role_tags_to_json_v (char *json, size_t len, void *p)
 
size_t discord_permissions_role_tags_to_json (char *json, size_t len, struct discord_permissions_role_tags *p)
 
size_t discord_permissions_role_tags_to_query_v (char *json, size_t len, void *p)
 
size_t discord_permissions_role_tags_to_query (char *json, size_t len, struct discord_permissions_role_tags *p)
 
void discord_permissions_role_tags_list_free_v (void **p)
 
void discord_permissions_role_tags_list_free (struct discord_permissions_role_tags **p)
 
void discord_permissions_role_tags_list_from_json_v (char *str, size_t len, void *p)
 
void discord_permissions_role_tags_list_from_json (char *str, size_t len, struct discord_permissions_role_tags ***p)
 
size_t discord_permissions_role_tags_list_to_json_v (char *str, size_t len, void *p)
 
size_t discord_permissions_role_tags_list_to_json (char *str, size_t len, struct discord_permissions_role_tags **p)
 

Detailed Description

Specs generated file.

Author
cee-studio
Date
21 Jun 2021
See also
https://discord.com/developers/docs/topics/permissions