Concord - C Discord API library
A Discord API wrapper library written in C
Commands

Requests made by the client to the Gateway socket. More...

Collaboration diagram for Commands:

Functions

void discord_request_guild_members (struct discord *client, struct discord_request_guild_members *request)
 Request all members for a guild or a list of guilds. More...
 
void discord_update_voice_state (struct discord *client, struct discord_update_voice_state *update)
 Sent when a client wants to join, move or disconnect from a voice channel. More...
 
void discord_update_presence (struct discord *client, struct discord_presence_update *presence)
 Update the client presence status. More...
 
void discord_set_presence (struct discord *client, struct discord_presence_update *presence)
 Set the client presence status. More...
 

Detailed Description

Requests made by the client to the Gateway socket.

Function Documentation

◆ discord_request_guild_members()

void discord_request_guild_members ( struct discord client,
struct discord_request_guild_members request 
)

Request all members for a guild or a list of guilds.

See also
https://discord.com/developers/docs/topics/gateway#request-guild-members
Parameters
clientthe client created with discord_init()
requestrequest guild members information

◆ discord_update_voice_state()

void discord_update_voice_state ( struct discord client,
struct discord_update_voice_state update 
)

Sent when a client wants to join, move or disconnect from a voice channel.

Parameters
clientthe client created with discord_init()
updaterequest guild members information

◆ discord_update_presence()

void discord_update_presence ( struct discord client,
struct discord_presence_update presence 
)

Update the client presence status.

See also
discord_presence_add_activity()
Parameters
clientthe client created with discord_init()
presencestatus to update the client's to

◆ discord_set_presence()

void discord_set_presence ( struct discord client,
struct discord_presence_update presence 
)

Set the client presence status.

Deprecated:
since v2.0.0, use discord_update_presence() instead
See also
discord_presence_add_activity()
Parameters
clientthe client created with discord_init()
presencestatus to update the client's to