Skip to main content

SleepyDiscord::Role

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

inherited members​

Public Types inherited from SleepyDiscord::IdentifiableDiscordObject< Role >

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

Public Functions inherited from SleepyDiscord::IdentifiableDiscordObject< Role >

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
booloperator!=(const Snowflake< Derived > & right) const
booloperator!=(const IdentifiableDiscordObject< Derived > & right) const
const TimegetTimestamp()

Public Attributes inherited from SleepyDiscord::IdentifiableDiscordObject< Role >

Name
Snowflake< Derived >ID

Public Functions Documentation​

function Role​

Role() =default

function ~Role​

inline ~Role()

function Role​

Role(
const json::Value & rawJSON
)

function Role​

inline Role(
const nonstd::string_view & json
)

function operator==​

inline bool operator==(
Role & right
)

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< UInt64StrTypeHelper > &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD
)

Public Attributes Documentation​

variable name​

std::string name;

variable color​

int color = -1;

variable hoist​

bool hoist = false;

variable position​

int position = 0;

variable permissions​

Permission permissions = NONE;

variable managed​

bool managed = false;

variable mentionable​

bool mentionable = false;

variable tags​

Tags tags;

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