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

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

Collaboration diagram for Emoji:

Data Structures

struct  discord_ret_emoji
 Request's return context. More...
 
struct  discord_ret_emojis
 Request's return context. More...
 

Functions

CCORDcode discord_list_guild_emojis (struct discord *client, u64snowflake guild_id, struct discord_ret_emojis *ret)
 Get emojis of a given guild. More...
 
CCORDcode discord_get_guild_emoji (struct discord *client, u64snowflake guild_id, u64snowflake emoji_id, struct discord_ret_emoji *ret)
 Get a specific emoji from a guild. More...
 
CCORDcode discord_create_guild_emoji (struct discord *client, u64snowflake guild_id, struct discord_create_guild_emoji *params, struct discord_ret_emoji *ret)
 Create a new emoji for the guild. More...
 
CCORDcode discord_modify_guild_emoji (struct discord *client, u64snowflake guild_id, u64snowflake emoji_id, struct discord_modify_guild_emoji *params, struct discord_ret_emoji *ret)
 Modify the given emoji. More...
 
CCORDcode discord_delete_guild_emoji (struct discord *client, u64snowflake guild_id, u64snowflake emoji_id, struct discord_delete_guild_emoji *params, struct discord_ret *ret)
 Deletes the given emoji. More...
 

Detailed Description

Emoji's public API supported by Concord.

Function Documentation

◆ discord_list_guild_emojis()

CCORDcode discord_list_guild_emojis ( struct discord client,
u64snowflake  guild_id,
struct discord_ret_emojis ret 
)

Get emojis of a given guild.

Parameters
clientthe client created with discord_init()
guild_idguild to get emojis from
retreturn context of the request. if successful a discord_emojis will be sent over to its assigned done callback
See also
discord_ret_emojis for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary
Examples
emoji.c.

◆ discord_get_guild_emoji()

CCORDcode discord_get_guild_emoji ( struct discord client,
u64snowflake  guild_id,
u64snowflake  emoji_id,
struct discord_ret_emoji ret 
)

Get a specific emoji from a guild.

Parameters
clientthe client created with discord_init()
guild_idguild the emoji belongs to
emoji_idthe emoji to be fetched
retreturn context of the request. if successful a discord_emoji will be sent over to its assigned done callback
See also
discord_ret_emoji for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary
Examples
emoji.c.

◆ discord_create_guild_emoji()

CCORDcode discord_create_guild_emoji ( struct discord client,
u64snowflake  guild_id,
struct discord_create_guild_emoji params,
struct discord_ret_emoji ret 
)

Create a new emoji for the guild.

Note
Fires a Guild Emojis Update event
Parameters
clientthe client created with discord_init()
guild_idguild to add the new emoji to
paramsrequest parameters
retreturn context of the request. if successful a discord_emoji will be sent over to its assigned done callback
See also
discord_ret_emoji for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary

◆ discord_modify_guild_emoji()

CCORDcode discord_modify_guild_emoji ( struct discord client,
u64snowflake  guild_id,
u64snowflake  emoji_id,
struct discord_modify_guild_emoji params,
struct discord_ret_emoji ret 
)

Modify the given emoji.

Note
Fires a Guild Emojis Update event
Parameters
clientthe client created with discord_init()
guild_idguild the emoji belongs to
emoji_idthe emoji to be modified
paramsrequest parameters
retreturn context of the request. if successful a discord_emoji will be sent over to its assigned done callback
See also
discord_ret_emoji for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary

◆ discord_delete_guild_emoji()

CCORDcode discord_delete_guild_emoji ( struct discord client,
u64snowflake  guild_id,
u64snowflake  emoji_id,
struct discord_delete_guild_emoji params,
struct discord_ret ret 
)

Deletes the given emoji.

Note
Fires a Guild Emojis Update event
Parameters
clientthe client created with discord_init()
guild_idguild the emoji belongs to
emoji_idthe emoji to be deleted
paramsrequest parameters
retreturn context of the request. if successful the assigned done will be triggered
See also
discord_ret for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary