An emoji reference for a component (select menus included) or a poll. More...
#include "message.h"
Public Attributes | |
bool | animated {false} |
Is the emoji animated? More... | |
dpp::snowflake | id {0} |
The emoji ID value for emojis that are custom ones belonging to a guild. More... | |
std::string | name {} |
The name of the emoji. More... | |
An emoji reference for a component (select menus included) or a poll.
To set an emoji on your button or poll answer, you must set one of either the name or id fields. The easiest way for buttons is to use the dpp::component::set_emoji method.
bool dpp::partial_emoji::animated {false} |
Is the emoji animated?
dpp::snowflake dpp::partial_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::partial_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:"