D++ (DPP)
C++ Discord API Bot Library
|
#include <message.h>
Public Attributes | |
std::string | name |
dpp::snowflake | id |
bool | animated |
Emoji definition. 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 component::set_emoji method.
bool dpp::component::inner_emoji::animated |
True if the emoji is animated. Only applies to custom emojis.
dpp::snowflake dpp::component::inner_emoji::id |
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::inner_emoji::name |
Set the name field to 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:"