D++ (DPP)
C++ Discord API Bot Library
dpp::reaction Struct Reference

Represents a reaction to a dpp::message. More...

+ Collaboration diagram for dpp::reaction:

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...
 

Detailed Description

Represents a reaction to a dpp::message.

Constructor & Destructor Documentation

◆ reaction() [1/2]

dpp::reaction::reaction ( )

Constructs a new reaction object.

◆ reaction() [2/2]

dpp::reaction::reaction ( nlohmann::json *  j)

Constructs a new reaction object from a JSON object.

Parameters
jThe JSON to read data from

◆ ~reaction()

dpp::reaction::~reaction ( )
default

Destructs the reaction object.

Member Data Documentation

◆ burst_colors

std::vector<uint32_t> dpp::reaction::burst_colors

HEX colors used for super reaction.

Note
Stored as integers.

◆ count

uint32_t dpp::reaction::count

Total number of times this emoji has been used to react (including super reacts)

◆ count_burst

uint32_t dpp::reaction::count_burst

Count of super reactions.

◆ count_normal

uint32_t dpp::reaction::count_normal

Count of normal reactions.

◆ emoji_id

snowflake dpp::reaction::emoji_id

ID of emoji for reaction.

◆ emoji_name

std::string dpp::reaction::emoji_name

Name of emoji, if applicable.

◆ me

bool dpp::reaction::me

Whether your bot reacted using this emoji.

◆ me_burst

bool dpp::reaction::me_burst

Whether your bot super-reacted using this emoji.

D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0