D++ (DPP)  10.0.30
C++ Discord API Bot Library
dpp::collected_reaction Class Reference

Represents a reaction. More...

#include "collector.h"

Inheritance diagram for dpp::collected_reaction:
Collaboration diagram for dpp::collected_reaction:

Public Member Functions

constexpr double get_creation_time () const noexcept
 Get the creation time of this object according to Discord. More...
 
constexpr bool operator!= (const managed &other) const noexcept
 Comparison operator for comparing two managed objects by id. More...
 
constexpr bool operator== (const managed &other) const noexcept
 Comparison operator for comparing two managed objects by id. More...
 

Public Attributes

snowflake id = {}
 Unique ID of object set by Discord. More...
 
snowflake message_author_id {}
 Optional: ID of the user who authored the message which was reacted to. More...
 
channelreact_channel {}
 Reacting channel. More...
 
emoji react_emoji
 Reacted emoji. More...
 
guildreact_guild {}
 Reacting guild. More...
 
guild_member react_member
 Reacting guild member. More...
 
user react_user
 Reacting user. More...
 

Detailed Description

Represents a reaction.

Can be filled for use in a collector

Member Function Documentation

◆ get_creation_time()

constexpr double dpp::managed::get_creation_time ( ) const
inlineconstexprnoexceptinherited

Get the creation time of this object according to Discord.

Returns
double creation time inferred from the snowflake ID. The minimum possible value is the first second of 2015.

◆ operator!=()

constexpr bool dpp::managed::operator!= ( const managed other) const
inlineconstexprnoexceptinherited

Comparison operator for comparing two managed objects by id.

Parameters
otherOther object to compare against
Returns
true objects are not the same id
false objects are the same id

◆ operator==()

constexpr bool dpp::managed::operator== ( const managed other) const
inlineconstexprnoexceptinherited

Comparison operator for comparing two managed objects by id.

Parameters
otherOther object to compare against
Returns
true objects are the same id
false objects are not the same id

Member Data Documentation

◆ id

◆ message_author_id

snowflake dpp::collected_reaction::message_author_id {}

Optional: ID of the user who authored the message which was reacted to.

◆ react_channel

channel* dpp::collected_reaction::react_channel {}

Reacting channel.

◆ react_emoji

emoji dpp::collected_reaction::react_emoji

Reacted emoji.

◆ react_guild

guild* dpp::collected_reaction::react_guild {}

Reacting guild.

◆ react_member

guild_member dpp::collected_reaction::react_member

Reacting guild member.

◆ react_user

user dpp::collected_reaction::react_user

Reacting user.


The documentation for this class was generated from the following file: