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

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

#include "message.h"

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

std::vector< uint32_t > burst_colors
 HEX colors used for super reaction. More...
 
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...
 

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)

Referenced by dpp::embed_footer::set_icon(), and dpp::embed::set_url().

◆ count_burst

uint32_t dpp::reaction::count_burst

Count of super reactions.

Referenced by dpp::embed_footer::set_icon(), and dpp::embed::set_url().

◆ count_normal

uint32_t dpp::reaction::count_normal

Count of normal reactions.

Referenced by dpp::embed::set_url().

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


The documentation for this struct was generated from the following files: