SleepyDiscord::Server
Inherits from SleepyDiscord::IdentifiableDiscordObject< Server >, SleepyDiscord::DiscordObject
inherited members​
Public Types inherited from SleepyDiscord::IdentifiableDiscordObject< Server >
Name | |
---|---|
using IdentifiableDiscordObject< Derived > | Parent |
using Snowflake< Derived > | Identifier |
Public Functions inherited from SleepyDiscord::IdentifiableDiscordObject< Server >
Name | |
---|---|
IdentifiableDiscordObject() =default | |
IdentifiableDiscordObject(Snowflake< Derived > id) | |
operator Snowflake< Derived > &() | |
bool | empty() const |
void | merge(Derived & changes) |
template <class DiscordObject > bool | operator==(const Snowflake< DiscordObject > & right) const |
template <class DiscordObject > bool | operator!=(const Snowflake< DiscordObject > & right) const |
bool | operator==(const Snowflake< Derived > & right) const |
bool | operator!=(const Snowflake< Derived > & right) const |
bool | operator==(const IdentifiableDiscordObject< Derived > & right) const |
bool | operator!=(const IdentifiableDiscordObject< Derived > & right) const |
const Time | getTimestamp() |
Public Attributes inherited from SleepyDiscord::IdentifiableDiscordObject< Server >
Name | |
---|---|
Snowflake< Derived > | ID |
Public Functions Documentation​
function ~Server​
~Server() =default
function Server​
Server() =default
function Server​
inline Server(
const nonstd::string_view & json
)
function Server​
Server(
const json::Value & json
)
function findMember​
std::list< ServerMember >::iterator findMember(
const Snowflake< User > userID
)
function findChannel​
std::list< Channel >::iterator findChannel(
const Snowflake< Channel > channelID
)
function findRole​
std::list< Role >::iterator findRole(
const Snowflake< Role > roleID
)
function std::make_tuple​
JSONStructStart std::make_tuple(
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::NULLABLE_FIELD ,
json::pair &::, "", ::NULLABLE_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair< UInt64StrTypeHelper > &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::NULLABLE_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 ,
json::pair< json::ContainerTypeHelper > &::, "", ::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 &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair< json::ContainerTypeHelper > &::, "", ::OPTIONAL_FIELD ,
json::pair< json::ContainerTypeHelper > &::, "", ::OPTIONAL_FIELD ,
json::pair< json::ContainerTypeHelper > &::, "", ::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 &::, "", ::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 name​
std::string name;
variable icon​
std::string icon;
variable splash​
std::string splash;
variable discoverySplash​
std::string discoverySplash;
variable ownerID​
Snowflake< User > ownerID;
variable permissions​
Permission permissions;
variable region​
std::string region;
variable AFKchannelID​
std::string AFKchannelID;
variable AFKTimeout​
int AFKTimeout;
variable embedEnable​
bool embedEnable;
variable embedChannelID​
std::string embedChannelID;
variable verificationLevel​
int verificationLevel;
variable defaultMessageNotifications​
int defaultMessageNotifications;
variable explicitContentFilter​
int explicitContentFilter;
variable roles​
std::list< Role > roles;
variable voiceStates​
std::list< VoiceState > voiceStates;
variable features​
std::vector< std::string > features;
variable unavailable​
bool unavailable;
variable stageInstances​
std::vector< StageInstance > stageInstances;
variable applicationID​
Snowflake< DiscordObject > applicationID;
variable systemChannelID​
Snowflake< Channel > systemChannelID;
variable systemChannelFlags​
int systemChannelFlags;
variable rulesChannelID​
Snowflake< Channel > rulesChannelID;
variable MFALevel​
int MFALevel;
variable joinedAt​
std::string joinedAt;
variable maxMembers​
int maxMembers = 0;
variable vanityUrlCode​
std::string vanityUrlCode;
variable description​
std::string description;
variable banner​
std::string banner;
variable premiumTier​
int premiumTier = 0;
variable premiumSubscriptionCount​
int premiumSubscriptionCount = 0;
variable preferredLocale​
std::string preferredLocale;
variable publicUpdatesChannelID​
Snowflake< Channel > publicUpdatesChannelID;
variable maxVideoChannelUsers​
int maxVideoChannelUsers;
variable approximateMemberCount​
int approximateMemberCount;
variable approximatePresenceCount​
int approximatePresenceCount;
variable nsfwLevel​
int nsfwLevel = 0;
variable large​
bool large;
variable memberCount​
int memberCount = 0;
variable members​
std::list< ServerMember > members;
variable channels​
std::list< Channel > channels;
Updated on 13 April 2022 at 18:39:59 UTC