Sticker's public API supported by Concord.
More...
|
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...
|
|
Sticker's public API supported by Concord.
◆ discord_get_sticker()
Get a sticker from a given ID.
- Parameters
-
client | the client created with discord_init() |
sticker_id | the sticker to be fetched |
ret | return 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()
◆ discord_list_guild_stickers()
Get stickers for the given guild.
- Note
- includes
user
fields if the bot has the MANAGE_EMOJIS_AND_STICKERS
permission
- Parameters
-
client | the client created with discord_init() |
guild_id | guild to fetch the stickers from |
ret | return 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()
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
-
client | the client created with discord_init() |
guild_id | the guild where the sticker belongs to |
sticker_id | the sticker to be fetched |
ret | return 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()
Modify the given sticker.
- Note
- requires the
MANAGE_EMOJIS_AND_STICKERS
permission
- Parameters
-
client | the client created with discord_init() |
guild_id | the guild where the sticker belongs to |
sticker_id | the sticker to be modified |
params | the request parameters |
ret | return 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()
Delete the given sticker.
- Note
- requires the
MANAGE_EMOJIS_AND_STICKERS
permission
- Parameters
-
client | the client created with discord_init() |
guild_id | the guild where the sticker belongs to |
sticker_id | the sticker to be deleted |
ret | return 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