D++ (DPP)
C++ Discord API Bot Library
|
Represets 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 |
bool | me |
snowflake | emoji_id |
std::string | emoji_name |
Represets 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.
uint32_t dpp::reaction::count |
Number of times this reaction has been added
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 |
Reaction was from the bot's id