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 |
uint32_t | count_burst |
uint32_t | count_normal |
snowflake | emoji_id |
std::string | emoji_name |
bool | me |
bool | me_burst |
std::vector< uint32_t > | burst_colors |
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. Stored as integers
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