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

A single Message. More...

#include <MessageEntities.hpp>

Inheritance diagram for DiscordCoreAPI::Message:

Additional Inherited Members

- Public Member Functions inherited from DiscordCoreAPI::DiscordEntity
std::string getCreatedAtTimestamp (TimeFormat timeFormat)
 Converts the snowflake-id into a time and date stamp. More...
- Public Data Members inherited from DiscordCoreAPI::MessageData
std::unique_ptr< MessageDataOldreferencedMessage { std::make_unique<MessageDataOld>() }
 The referenced Message, to reply to.
- Public Data Members inherited from DiscordCoreAPI::MessageDataOld
MessageActivityData activity {}
 Message activity data.
ApplicationData application {}
 Application data.
Snowflake applicationId {}
 Application id.
std::vector< AttachmentDataattachments {}
 Array of attachment data.
UserData author {}
 The author's User data.
Snowflake channelId {}
 The Channel it was sent in.
std::vector< ActionRowDatacomponents {}
 Array of action row data.
std::string content {}
 The Message's content.
TimeStamp< std::chrono::milliseconds > editedTimestamp {}
 The time at which it was edited.
std::vector< EmbedDataembeds {}
 Array of Message embeds.
int32_t flags { 0 }
Snowflake guildId {}
 The id of the Guild the Message was sent in.
MessageInteractionData interaction {}
 Message Interaction data.
GuildMemberData member {}
 The author's Guild member data.
std::vector< ChannelMentionDatamentionChannels {}
 array of Channel mention data.
bool mentionEveryone { false }
 Does the Message mention everyone?
std::vector< std::string > mentionRoles {}
 Vector of "mention roles" ids.
std::vector< UserDatamentions {}
 Array of User data, for individual's that were mentioned.
MessageReferenceData messageReference {}
 Message reference data.
std::string nonce {}
bool pinned { false }
 Is it pinned?
std::vector< StickerItemDatastickerItems {}
 Array of Message Sticker item data.
std::vector< StickerDatastickers {}
 Array of Message Sticker data.
ChannelData thread {}
 The Thread that the Message was sent in, if applicable.
TimeStamp< std::chrono::milliseconds > timestamp {}
 The timestamp of when the Message was created.
bool tts { false }
 Is it a text-to-speech Message?
MessageType type {}
 Message type.
Snowflake webHookId {}
 WebHook id of the Message, if applicable.
- Public Data Members inherited from DiscordCoreAPI::DiscordEntity
Snowflake id {}

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