D++ (DPP)
C++ Discord API Bot Library
|
An emoji for a component (select menus included). More...
Public Attributes | |
std::string | name {""} |
The name of the emoji. More... | |
dpp::snowflake | id {0} |
The emoji ID value for emojis that are custom ones belonging to a guild. More... | |
bool | animated {false} |
Is the emoji animated? More... | |
An emoji for a component (select menus included).
To set an emoji on your button, you must set one of either the name or id fields. The easiest way is to use the dpp::component::set_emoji method.
bool dpp::component_emoji::animated {false} |
Is the emoji animated?
dpp::snowflake dpp::component_emoji::id {0} |
The emoji ID value for emojis that are custom ones belonging to a guild.
The same rules apply as with other emojis, that the bot must be on the guild where the emoji resides and it must be available for use (e.g. not disabled due to lack of boosts, etc)
std::string dpp::component_emoji::name {""} |
The name of the emoji.
For built in unicode emojis, set this to the actual unicode value of the emoji e.g. "😄" and not for example ":smile:"