SleepyDiscord::Embed
Inherits from SleepyDiscord::DiscordObject
Public Types Documentation​
enum Flag​
Enumerator | Value | Description |
---|---|---|
INVALID_EMBED | 0 | |
VALID_EMBED | 1 |
Public Functions Documentation​
function Embed​
Embed() =default
function Embed​
Embed(
const json::Value & json
)
function Embed​
inline Embed(
const nonstd::string_view & json
)
function Embed​
inline Embed(
const Flag f
)
function empty​
inline bool empty() const
function std::make_tuple​
JSONStructStart std::make_tuple(
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair<-1 > &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair< json::ContainerTypeHelper > &::, "", ::OPTIONAL_FIELD
)
Public Attributes Documentation​
variable title​
std::string title;
variable type​
std::string type;
variable description​
std::string description;
variable url​
std::string url;
variable timestamp​
std::string timestamp;
variable color​
int32_t color = -1;
variable footer​
EmbedFooter footer;
variable image​
EmbedImage image;
variable thumbnail​
EmbedThumbnail thumbnail;
variable video​
EmbedVideo video;
variable provider​
EmbedProvider provider;
variable author​
EmbedAuthor author;
variable fields​
std::vector< EmbedField > fields;
Updated on 13 April 2022 at 18:39:59 UTC