D++ (DPP)
C++ Discord API Bot Library
|
Represents a reaction to a dpp::message. More...
#include <message.h>
Public Member Functions | |
reaction () | |
Constructs a new reaction object. More... | |
reaction (nlohmann::json *j) | |
Constructs a new reaction object from a JSON object. More... | |
~reaction ()=default | |
Destructs the reaction object. More... | |
Public Attributes | |
uint32_t | count |
Total number of times this emoji has been used to react (including super reacts) More... | |
uint32_t | count_burst |
Count of super reactions. More... | |
uint32_t | count_normal |
Count of normal reactions. More... | |
snowflake | emoji_id |
ID of emoji for reaction. More... | |
std::string | emoji_name |
Name of emoji, if applicable. More... | |
bool | me |
Whether your bot reacted using this emoji. More... | |
bool | me_burst |
Whether your bot super-reacted using this emoji. More... | |
std::vector< uint32_t > | burst_colors |
HEX colors used for super reaction. More... | |
Represents a reaction to a dpp::message.
dpp::reaction::reaction | ( | ) |
Constructs a new reaction object.
dpp::reaction::reaction | ( | nlohmann::json * | j | ) |
Constructs a new reaction object from a JSON object.
j | The JSON to read data from |
|
default |
Destructs the reaction object.
std::vector<uint32_t> dpp::reaction::burst_colors |
HEX colors used for super reaction.
uint32_t dpp::reaction::count |
Total number of times this emoji has been used to react (including super reacts)
uint32_t dpp::reaction::count_burst |
Count of super reactions.
uint32_t dpp::reaction::count_normal |
Count of normal reactions.
snowflake dpp::reaction::emoji_id |
ID of emoji for reaction.
std::string dpp::reaction::emoji_name |
Name of emoji, if applicable.
bool dpp::reaction::me |
Whether your bot reacted using this emoji.
bool dpp::reaction::me_burst |
Whether your bot super-reacted using this emoji.