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

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

Collaboration diagram for Sticker:

Data Structures

struct  discord_ret_sticker
 Request's return context. More...
 
struct  discord_ret_stickers
 Request's return context. More...
 
struct  discord_ret_list_nitro_sticker_packs
 Request's return context. More...
 

Functions

CCORDcode discord_get_sticker (struct discord *client, u64snowflake sticker_id, struct discord_ret_sticker *ret)
 Get a sticker from a given ID. More...
 
CCORDcode discord_list_nitro_sticker_packs (struct discord *client, struct discord_ret_list_nitro_sticker_packs *ret)
 Get a list of sticker packs available to Nitro subscribers. More...
 
CCORDcode discord_list_guild_stickers (struct discord *client, u64snowflake guild_id, struct discord_ret_stickers *ret)
 Get stickers for the given guild. More...
 
CCORDcode discord_get_guild_sticker (struct discord *client, u64snowflake guild_id, u64snowflake sticker_id, struct discord_ret_sticker *ret)
 Get a sticker for the given guild and sticker ID. More...
 
CCORDcode discord_modify_guild_sticker (struct discord *client, u64snowflake guild_id, u64snowflake sticker_id, struct discord_modify_guild_sticker *params, struct discord_ret_sticker *ret)
 Modify the given sticker. More...
 
CCORDcode discord_delete_guild_sticker (struct discord *client, u64snowflake guild_id, u64snowflake sticker_id, struct discord_ret *ret)
 Delete the given sticker. More...
 

Detailed Description

Sticker's public API supported by Concord.

Function Documentation

◆ discord_get_sticker()

CCORDcode discord_get_sticker ( struct discord client,
u64snowflake  sticker_id,
struct discord_ret_sticker ret 
)

Get a sticker from a given ID.

Parameters
clientthe client created with discord_init()
sticker_idthe sticker to be fetched
retreturn context of the request. if successful a discord_sticker will be sent over to its assigned done callback
See also
discord_ret_sticker for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary

◆ discord_list_nitro_sticker_packs()

Get a list of sticker packs available to Nitro subscribers.

Parameters
clientthe client created with discord_init()
retreturn context of the request. if successful a discord_list_nitro_sticker_packs will be sent over to its assigned done callback
See also
discord_ret_list_nitro_sticker_packs for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary

◆ discord_list_guild_stickers()

CCORDcode discord_list_guild_stickers ( struct discord client,
u64snowflake  guild_id,
struct discord_ret_stickers ret 
)

Get stickers for the given guild.

Note
includes user fields if the bot has the MANAGE_EMOJIS_AND_STICKERS permission
Parameters
clientthe client created with discord_init()
guild_idguild to fetch the stickers from
retreturn context of the request. if successful a discord_stickers will be sent over to its assigned done callback
See also
discord_ret_stickers for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary

◆ discord_get_guild_sticker()

CCORDcode discord_get_guild_sticker ( struct discord client,
u64snowflake  guild_id,
u64snowflake  sticker_id,
struct discord_ret_sticker ret 
)

Get a sticker for the given guild and sticker ID.

Note
includes the user field if the bot has the MANAGE_EMOJIS_AND_STICKERS permission
Parameters
clientthe client created with discord_init()
guild_idthe guild where the sticker belongs to
sticker_idthe sticker to be fetched
retreturn context of the request. if successful a discord_sticker will be sent over to its assigned done callback
See also
discord_ret_sticker for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary

◆ discord_modify_guild_sticker()

CCORDcode discord_modify_guild_sticker ( struct discord client,
u64snowflake  guild_id,
u64snowflake  sticker_id,
struct discord_modify_guild_sticker params,
struct discord_ret_sticker ret 
)

Modify the given sticker.

Note
requires the MANAGE_EMOJIS_AND_STICKERS permission
Parameters
clientthe client created with discord_init()
guild_idthe guild where the sticker belongs to
sticker_idthe sticker to be modified
paramsthe request parameters
retreturn context of the request. if successful a discord_sticker will be sent over to its assigned done callback
See also
discord_ret_sticker for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary

◆ discord_delete_guild_sticker()

CCORDcode discord_delete_guild_sticker ( struct discord client,
u64snowflake  guild_id,
u64snowflake  sticker_id,
struct discord_ret ret 
)

Delete the given sticker.

Note
requires the MANAGE_EMOJIS_AND_STICKERS permission
Parameters
clientthe client created with discord_init()
guild_idthe guild where the sticker belongs to
sticker_idthe sticker to be deleted
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