Concord - C Discord API library
A Discord API wrapper library written in C
|
Custom helper functions. More...
Functions | |
CCORDcode | discord_get_channel_at_pos (struct discord *client, u64snowflake guild_id, enum discord_channel_types type, int position, struct discord_ret_channel *ret) |
Get a guild's channel from its given numerical position. More... | |
void | discord_overwrite_append (struct discord_overwrites *permission_overwrites, u64snowflake id, int type, u64bitmask allow, u64bitmask deny) |
Append to an overwrite list. More... | |
Custom helper functions.
CCORDcode discord_get_channel_at_pos | ( | struct discord * | client, |
u64snowflake | guild_id, | ||
enum discord_channel_types | type, | ||
int | position, | ||
struct discord_ret_channel * | ret | ||
) |
Get a guild's channel from its given numerical position.
client | the client created with discord_init() |
guild_id | guild the channel belongs to |
type | the channel type where to take position reference from |
ret | return context of the request. if successful a discord_channel will be sent over to its assigned done callback |
void discord_overwrite_append | ( | struct discord_overwrites * | permission_overwrites, |
u64snowflake | id, | ||
int | type, | ||
u64bitmask | allow, | ||
u64bitmask | deny | ||
) |
Append to an overwrite list.
discord_overwrite_list_free()
after its no longer being usedpermission_overwrites | list to be appended to |
id | role or user id |
type | either 0 (role) or 1 (member) |
allow | permission bit set |
deny | permission bit set |