Emoji's public API supported by Concord.
More...
|
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...
|
|
Emoji's public API supported by Concord.
◆ discord_list_guild_emojis()
Get emojis of a given guild.
- Parameters
-
client | the client created with discord_init() |
guild_id | guild to get emojis from |
ret | return 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()
Get a specific emoji from a guild.
- Parameters
-
client | the client created with discord_init() |
guild_id | guild the emoji belongs to |
emoji_id | the emoji to be fetched |
ret | return 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()
Create a new emoji for the guild.
- Note
- Fires a
Guild Emojis Update
event
- Parameters
-
client | the client created with discord_init() |
guild_id | guild to add the new emoji to |
params | request parameters |
ret | return 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()
Modify the given emoji.
- Note
- Fires a
Guild Emojis Update
event
- Parameters
-
client | the client created with discord_init() |
guild_id | guild the emoji belongs to |
emoji_id | the emoji to be modified |
params | request parameters |
ret | return 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()
Deletes the given emoji.
- Note
- Fires a
Guild Emojis Update
event
- Parameters
-
client | the client created with discord_init() |
guild_id | guild the emoji belongs to |
emoji_id | the emoji to be deleted |
params | request parameters |
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