SleepyDiscord::Overwrite
Inherits from SleepyDiscord::IdentifiableDiscordObject< Overwrite >, SleepyDiscord::DiscordObject
inherited members​
Public Types inherited from SleepyDiscord::IdentifiableDiscordObject< Overwrite >
Name | |
---|---|
using IdentifiableDiscordObject< Derived > | Parent |
using Snowflake< Derived > | Identifier |
Public Functions inherited from SleepyDiscord::IdentifiableDiscordObject< Overwrite >
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< Overwrite >
Name | |
---|---|
Snowflake< Derived > | ID |
Public Types Documentation​
enum Type​
Enumerator | Value | Description |
---|---|---|
TYPE_NONE | -400 | |
role | 0 | |
member | 1 |
Public Functions Documentation​
function Overwrite​
Overwrite() =default
function Overwrite​
Overwrite(
const json::Value & rawJSON
)
function Overwrite​
inline Overwrite(
const nonstd::string_view & json
)
function ~Overwrite​
inline ~Overwrite()
function std::make_tuple​
JSONStructStart std::make_tuple(
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair< json::EnumTypeHelper > &::, "", ::REQUIRIED_FIELD ,
json::pair< UInt64StrTypeHelper > &::, "", ::REQUIRIED_FIELD ,
json::pair< UInt64StrTypeHelper > &::, "", ::REQUIRIED_FIELD
)
Public Attributes Documentation​
variable type​
Type type;
variable allow​
Permission allow = Permission::NONE;
variable deny​
Permission deny = Permission::NONE;
Updated on 13 April 2022 at 18:39:59 UTC