Concord - C Discord API library
A Discord API wrapper library written in C
|
Custom helper functions. More...
Functions | |
CCORDcode | discord_disconnect_guild_member (struct discord *client, u64snowflake guild_id, u64snowflake user_id, struct discord_modify_guild_member *params, struct discord_ret_guild_member *ret) |
Disconnect a member from voice channel. More... | |
void | discord_presence_add_activity (struct discord_presence_update *presence, struct discord_activity *activity) |
Helper function to add presence activities. More... | |
Custom helper functions.
CCORDcode discord_disconnect_guild_member | ( | struct discord * | client, |
u64snowflake | guild_id, | ||
u64snowflake | user_id, | ||
struct discord_modify_guild_member * | params, | ||
struct discord_ret_guild_member * | ret | ||
) |
Disconnect a member from voice channel.
client | the client created with discord_init() |
guild_id | the guild the member belongs to |
user_id | the user to be disconnected |
params | request parameters |
ret | return context of the request. if successful a discord_guild_member will be sent over to its assigned done callback |
void discord_presence_add_activity | ( | struct discord_presence_update * | presence, |
struct discord_activity * | activity | ||
) |
Helper function to add presence activities.