Skip to main content

SleepyDiscord::Attachment

Inherits from SleepyDiscord::IdentifiableDiscordObject< Attachment >, SleepyDiscord::DiscordObject

inherited members​

Public Types inherited from SleepyDiscord::IdentifiableDiscordObject< Attachment >

Name
using IdentifiableDiscordObject< Derived >Parent
using Snowflake< Derived >Identifier

Public Functions inherited from SleepyDiscord::IdentifiableDiscordObject< Attachment >

Name
IdentifiableDiscordObject() =default
IdentifiableDiscordObject(Snowflake< Derived > id)
operator Snowflake< Derived > &()
boolempty() const
voidmerge(Derived & changes)
template <class DiscordObject >
bool
operator==(const Snowflake< DiscordObject > & right) const
template <class DiscordObject >
bool
operator!=(const Snowflake< DiscordObject > & right) const
booloperator==(const Snowflake< Derived > & right) const
booloperator!=(const Snowflake< Derived > & right) const
booloperator==(const IdentifiableDiscordObject< Derived > & right) const
booloperator!=(const IdentifiableDiscordObject< Derived > & right) const
const TimegetTimestamp()

Public Attributes inherited from SleepyDiscord::IdentifiableDiscordObject< Attachment >

Name
Snowflake< Derived >ID

Public Functions Documentation​

function Attachment​

Attachment() =default

function Attachment​

Attachment(
const json::Value & json
)

function Attachment​

inline Attachment(
const nonstd::string_view & json
)

function std::make_tuple​

JSONStructStart std::make_tuple(
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::NULLABLE_FIELD ,
json::pair &::, "", ::NULLABLE_FIELD
)

Public Attributes Documentation​

variable filename​

std::string filename;

variable size​

uint64_t size = 0;

variable url​

std::string url;

variable proxy_url​

std::string proxy_url;

variable height​

uint64_t height = 0;

variable width​

uint64_t width = 0;

Updated on 13 April 2022 at 18:39:59 UTC