Skip to main content

SleepyDiscord::ServerMember

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

inherited members​

Public Types inherited from SleepyDiscord::IdentifiableDiscordObject< User >

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

Public Functions inherited from SleepyDiscord::IdentifiableDiscordObject< User >

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< User >

Name
Snowflake< Derived >ID

Public Functions Documentation​

function ServerMember​

ServerMember() =default

function ServerMember​

inline ServerMember(
const nonstd::string_view & json
)

function ServerMember​

ServerMember(
const json::Value & json
)

function operator User &​

inline operator User &()

function std::make_tuple​

JSONStructStart std::make_tuple(
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair< json::ContainerTypeHelper > &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair< UInt64StrTypeHelper > &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD
)

Public Attributes Documentation​

variable user​

User user;

variable nick​

std::string nick;

variable roles​

std::vector< Snowflake< Role > > roles;

variable joinedAt​

std::string joinedAt;

variable deaf​

bool deaf = false;

variable mute​

bool mute = false;

variable permissions​

Permission permissions;

variable pending​

bool pending = false;

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