Skip to main content

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 > &()
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< Channel >

Name
Snowflake< Derived >ID

Public Types Documentation​

enum ChannelType​

EnumeratorValueDescription
CHANNEL_TYPE_NONE-1
SERVER_TEXT0
DM1
SERVER_VOICE2
GROUP_DM3
SERVER_CATEGORY4
GUILD_NEWS5
GUILD_STORE6
GUILD_STAGE_VOICE13

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