DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
discord_core_api::reactions Class Reference

An interface class for the reaction_data related discord endpoints. More...

#include <ReactionEntities.hpp>

Static Public Member Functions

static co_routine< emoji_datacreateGuildEmojiAsync (create_guild_emoji_data dataPackage)
 Creates a single guild emoji within a chosen guild. More...
 
static co_routine< reaction_datacreateReactionAsync (const create_reaction_data dataPackage)
 Creates a reaction_data on a message. More...
 
static co_routine< void > deleteAllReactionsAsync (const delete_all_reactions_data dataPackage)
 Deletes all of the reactions from a given message_data. More...
 
static co_routine< void > deleteGuildEmojiAsync (const delete_guild_emoji_data dataPackage)
 Deletes a single guild emoji within a chosen guild. More...
 
static co_routine< void > deleteOwnReactionAsync (const delete_own_reaction_data dataPackage)
 Deletes your own reactions from a given message_data. More...
 
static co_routine< void > deleteReactionsByEmojiAsync (const delete_reactions_by_emoji_data dataPackage)
 Deletes all of the reactions by a specific emoji from a given message_data. More...
 
static co_routine< void > deleteUserReactionAsync (const delete_user_reaction_data dataPackage)
 Deletes all of the reactions by a specific user_data from a given message_data. More...
 
static co_routine< jsonifier::vector< emoji_data > > getEmojiListAsync (const get_emoji_list_data dataPackage)
 Collects a list of guild emoji from a chosen guild. More...
 
static co_routine< emoji_datagetGuildEmojiAsync (const get_guild_emoji_data dataPackage)
 Collects a single guild emoji from a chosen guild. More...
 
static co_routine< jsonifier::vector< user_data > > getReactionsAsync (const get_reactions_data dataPackage)
 Get a list of users that reacted with this emoji. returns An array of user objects on success. More...
 
static co_routine< emoji_datamodifyGuildEmojiAsync (const modify_guild_emoji_data dataPackage)
 Modifies a single guild emoji within a chosen guild. More...
 

Member Function Documentation

◆ createGuildEmojiAsync()

co_routine< emoji_data > discord_core_api::reactions::createGuildEmojiAsync ( create_guild_emoji_data  dataPackage)
static
Parameters
dataPackagea create_guild_emoji_data structure.
Returns
a co_routine containing an emoji_data.

Definition at line 220 of file ReactionEntities.cpp.

◆ createReactionAsync()

co_routine< reaction_data > discord_core_api::reactions::createReactionAsync ( const create_reaction_data  dataPackage)
static
Parameters
dataPackagea create_reaction_data structure.
Returns
a co_routine containing a reaction_data.

Definition at line 102 of file ReactionEntities.cpp.

◆ deleteAllReactionsAsync()

co_routine< void > discord_core_api::reactions::deleteAllReactionsAsync ( const delete_all_reactions_data  dataPackage)
static
Parameters
dataPackagea delete_all_reactions_data structure.
Returns
a co_routine containing void.

Definition at line 172 of file ReactionEntities.cpp.

◆ deleteGuildEmojiAsync()

co_routine< void > discord_core_api::reactions::deleteGuildEmojiAsync ( const delete_guild_emoji_data  dataPackage)
static
Parameters
dataPackagea delete_guild_emoji_data structure.
Returns
a co_routine containing void.

Definition at line 268 of file ReactionEntities.cpp.

◆ deleteOwnReactionAsync()

co_routine< void > discord_core_api::reactions::deleteOwnReactionAsync ( const delete_own_reaction_data  dataPackage)
static
Parameters
dataPackagea delete_own_reaction_data structure.
Returns
a co_routine containing void.

Definition at line 119 of file ReactionEntities.cpp.

◆ deleteReactionsByEmojiAsync()

co_routine< void > discord_core_api::reactions::deleteReactionsByEmojiAsync ( const delete_reactions_by_emoji_data  dataPackage)
static
Parameters
dataPackagea delete_reactions_by_emoji_data structure.
Returns
a co_routine containing void.

Definition at line 182 of file ReactionEntities.cpp.

◆ deleteUserReactionAsync()

co_routine< void > discord_core_api::reactions::deleteUserReactionAsync ( const delete_user_reaction_data  dataPackage)
static
Parameters
dataPackagea delete_user_reaction_data structure.
Returns
a co_routine containing void.

Definition at line 135 of file ReactionEntities.cpp.

◆ getEmojiListAsync()

co_routine< jsonifier::vector< emoji_data > > discord_core_api::reactions::getEmojiListAsync ( const get_emoji_list_data  dataPackage)
static
Parameters
dataPackagea get_emoji_list_data structure.
Returns
a co_routine containing a jsonifier::vector<emoji_data>.

Definition at line 198 of file ReactionEntities.cpp.

◆ getGuildEmojiAsync()

co_routine< emoji_data > discord_core_api::reactions::getGuildEmojiAsync ( const get_guild_emoji_data  dataPackage)
static
Parameters
dataPackagea get_guild_emoji_data structure.
Returns
a co_routine containing an emoji_data.

Definition at line 209 of file ReactionEntities.cpp.

◆ getReactionsAsync()

co_routine< jsonifier::vector< user_data > > discord_core_api::reactions::getReactionsAsync ( const get_reactions_data  dataPackage)
static
Parameters
dataPackagea get_reactions_data structure.
Returns
a co_routine containing a jsonifier::vector<user_data>.

Definition at line 152 of file ReactionEntities.cpp.

◆ modifyGuildEmojiAsync()

co_routine< emoji_data > discord_core_api::reactions::modifyGuildEmojiAsync ( const modify_guild_emoji_data  dataPackage)
static
Parameters
dataPackagea modify_guild_emoji_data structure.
Returns
a co_routine containing an emoji_data.

Definition at line 253 of file ReactionEntities.cpp.


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