104 enum class image_type {
112 template<
typename value_type>
friend struct jsonifier::core;
113 friend class reactions;
115 jsonifier::vector<snowflake>
roles{};
123 jsonifier::string imageDataFinal{};
128 jsonifier::vector<snowflake>
roles{};
151 static void initialize(discord_core_internal::https_client*);
156 static co_routine<reaction_data> createReactionAsync(create_reaction_data dataPackage);
161 static co_routine<void> deleteOwnReactionAsync(delete_own_reaction_data dataPackage);
166 static co_routine<void> deleteUserReactionAsync(delete_user_reaction_data dataPackage);
171 static co_routine<jsonifier::vector<user_data>> getReactionsAsync(get_reactions_data dataPackage);
176 static co_routine<void> deleteAllReactionsAsync(delete_all_reactions_data dataPackage);
181 static co_routine<void> deleteReactionsByEmojiAsync(delete_reactions_by_emoji_data dataPackage);
186 static co_routine<jsonifier::vector<emoji_data>> getEmojiListAsync(get_emoji_list_data dataPackage);
191 static co_routine<emoji_data> getGuildEmojiAsync(get_guild_emoji_data dataPackage);
196 static co_routine<emoji_data> createGuildEmojiAsync(create_guild_emoji_data dataPackage);
201 static co_routine<emoji_data> modifyGuildEmojiAsync(modify_guild_emoji_data dataPackage);
206 static co_routine<void> deleteGuildEmojiAsync(delete_guild_emoji_data dataPackage);
209 static discord_core_internal::https_client* httpsClient;
Object collector, for collecting objects from a channel.
An interface class for the reaction_data related discord endpoints.
The main namespace for the forward-facing interfaces.
for creating a new guild emoji.
snowflake guildId
The guild within which to create the emoji.
jsonifier::string reason
Reason for creating the new emoji.
image_type type
The type of image being uploaded.
jsonifier::string imageFilePath
The image responseData.
jsonifier::vector< snowflake > roles
Roles that can use this emoji.
jsonifier::string name
Name of the emoji.
For creating a single reaction_data.
snowflake emojiId
The emoji id of the reaction_data to add.
snowflake messageId
The message on which to add the reaction_data.
jsonifier::string emojiName
The emoji name of the reaction_data to add.
snowflake channelId
The channel_data for which to add the reaction_data.
For deleting all of the reactions on a particular message_data.
snowflake channelId
The channel_data from which you would like to remove the emoji.
snowflake messageId
The message from which you would like to remove the emoji.
for deleting a guild emoji.
jsonifier::string reason
Reason for deleting the emoji.
snowflake guildId
The guild within which to delete the emoji.
snowflake emojiId
The id of the emoji to delete.
For deleting one's own reaction_data.
snowflake messageId
The message from which to remove the reaction_data.
jsonifier::string emojiName
The emoji name for which to remove the emoji.
snowflake channelId
The channel_data from which to remove the reaction_data.
snowflake emojiId
The emoji id for which to remove the emoji.
For deleting all of the reactions of a particular emoji.
snowflake emojiId
The id of which emoji to remove.
snowflake messageId
The message from which you would like to remove the emoji.
snowflake channelId
The channel_data from which you would like to remove the emoji.
jsonifier::string emojiName
The name of which emoji to remove.
For deleting a reaction, by user_data.
snowflake emojiId
The id of which emoji to remove.
snowflake messageId
The message from which to remove the reaction_data.
snowflake channelId
The channel_data from which to remove the reaction_data.
jsonifier::string emojiName
The name of which emoji to remove.
snowflake userId
The user_data id for whom to remove their emoji.
for collecting a list of emoji from a guild.
snowflake guildId
The id of the chosen guild.
for collecting a single guild emoji.
snowflake guildId
The id of the chosen guild.
snowflake emojiId
The id of the chosen emoji.
For getting all of the reactions.
snowflake messageId
The message from which to acquire the reactors.
snowflake channelId
The channel_data from which to acquire the reactors.
int32_t limit
The maximum number of reactors to collect.
jsonifier::string emoji
The emoji name for which to acquire the reactors.
snowflake afterId
Get users after this user id.
for modifying a guild emoji.
jsonifier::vector< snowflake > roles
Roles that can use this emoji.
jsonifier::string reason
Reason for modifying the emoji.
snowflake guildId
The guild within which to modify the emoji.
snowflake emojiId
The id of the emoji to modify.
jsonifier::string name
Name of the emoji.