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

Invite's public API supported by Concord. More...

Collaboration diagram for Invite:

Data Structures

struct  discord_ret_invite
 Request's return context. More...
 
struct  discord_ret_invites
 Request's return context. More...
 

Functions

CCORDcode discord_get_invite (struct discord *client, char *invite_code, struct discord_get_invite *params, struct discord_ret_invite *ret)
 Get an invite for the given code. More...
 
CCORDcode discord_delete_invite (struct discord *client, char *invite_code, struct discord_delete_invite *params, struct discord_ret_invite *ret)
 Delete an invite. More...
 

Detailed Description

Invite's public API supported by Concord.

Function Documentation

◆ discord_get_invite()

CCORDcode discord_get_invite ( struct discord client,
char *  invite_code,
struct discord_get_invite params,
struct discord_ret_invite ret 
)

Get an invite for the given code.

Parameters
clientthe client created with discord_init()
invite_codethe invite code
paramsrequest parameters
retreturn context of the request. if successful a discord_invite will be sent over to its assigned done callback
See also
discord_ret_invite for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary
Examples
invite.c.

◆ discord_delete_invite()

CCORDcode discord_delete_invite ( struct discord client,
char *  invite_code,
struct discord_delete_invite params,
struct discord_ret_invite ret 
)

Delete an invite.

Note
Requires the MANAGE_CHANNELS permission on the channel this invite belongs to, or MANAGE_GUILD to remove any invite across the guild.
Fires a Invite Delete event
Parameters
clientthe client created with discord_init()
invite_codethe invite code
paramsrequest parameters
retreturn context of the request. if successful a discord_invite will be sent over to its assigned done callback
See also
discord_ret_invite for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary
Examples
invite.c.