Concord - C Discord API library
A Discord API wrapper library written in C
Helper functions

Custom helper functions. More...

Collaboration diagram for Helper functions:

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...
 

Detailed Description

Custom helper functions.

Function Documentation

◆ discord_disconnect_guild_member()

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.

Parameters
clientthe client created with discord_init()
guild_idthe guild the member belongs to
user_idthe user to be disconnected
paramsrequest parameters
retreturn context of the request. if successful a discord_guild_member will be sent over to its assigned done callback
See also
discord_ret_guild_member for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary

◆ discord_presence_add_activity()

void discord_presence_add_activity ( struct discord_presence_update presence,
struct discord_activity activity 
)

Helper function to add presence activities.

See also
discord_set_presence()