SleepyDiscord::Channel
Inherits from SleepyDiscord::IdentifiableDiscordObject< Channel >, SleepyDiscord::DiscordObject
inherited members​
Public Types inherited from SleepyDiscord::IdentifiableDiscordObject< Channel >
Name | |
---|---|
using IdentifiableDiscordObject< Derived > | Parent |
using Snowflake< Derived > | Identifier |
Public Functions inherited from SleepyDiscord::IdentifiableDiscordObject< Channel >
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< Channel >
Name | |
---|---|
Snowflake< Derived > | ID |
Public Types Documentation​
enum ChannelType​
Enumerator | Value | Description |
---|---|---|
CHANNEL_TYPE_NONE | -1 | |
SERVER_TEXT | 0 | |
DM | 1 | |
SERVER_VOICE | 2 | |
GROUP_DM | 3 | |
SERVER_CATEGORY | 4 | |
GUILD_NEWS | 5 | |
GUILD_STORE | 6 | |
GUILD_STAGE_VOICE | 13 |
Public Functions Documentation​
function Channel​
Channel() =default
function Channel​
Channel(
const json::Value & rawJSON
)
function Channel​
inline Channel(
const nonstd::string_view & json
)
function ~Channel​
~Channel()
function std::make_tuple​
JSONStructStart std::make_tuple(
json::pair &::, "", ::REQUIRIED_FIELD REQUIRIED_FIELD,
json::pair< json::EnumTypeHelper > &::, "", ::REQUIRIED_FIELD REQUIRIED_FIELD,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair< json::ContainerTypeHelper > &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_NULLABLE_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_NULLABLE_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair< json::ContainerTypeHelper > &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_NULLABLE_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_NULLABLE_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD
)
Public Attributes Documentation​
variable type​
enum SleepyDiscord::Channel::ChannelType type = CHANNEL_TYPE_NONE;
variable serverID​
Snowflake< Server > serverID;
variable position​
int position = 0;
variable permissionOverwrites​
std::vector< Overwrite > permissionOverwrites;
variable name​
std::string name;
variable topic​
std::string topic;
variable isNSFW​
bool isNSFW = false;
variable lastMessageID​
Snowflake< Message > lastMessageID;
variable bitrate​
int bitrate = 0;
variable userLimit​
int userLimit = 0;
variable recipients​
std::vector< User > recipients;
variable icon​
std::string icon;
variable ownerID​
Snowflake< User > ownerID;
variable parentID​
Snowflake< Channel > parentID;
variable lastPinTimestamp​
std::string lastPinTimestamp;
Updated on 13 April 2022 at 18:39:59 UTC