A Discord bot library written in C++, with custom asynchronous coroutines.
No Matches
DiscordCoreAPI::Channel Class Reference

A Channel object. More...

#include <ChannelEntities.hpp>

Inheritance diagram for DiscordCoreAPI::Channel:

Public Data Members

Snowflake applicationId {}
 Application id of the current application.
Int32 bitrate { 0 }
 Bitrate of the Channel, if it is a voice Channel.
Int32 defaultAutoArchiveDuration { 0 }
 Default time it takes to archive a thread.
IconHash icon {}
 Icon for the Channel, if applicable.
StringWrapper lastMessageId {}
 Id of the last Message.
TimeStamp< std::chrono::milliseconds > lastPinTimestamp {}
 Timestamp of the last pinned Message.
ThreadMemberData member {}
 Thread member object for the current User, if they have joined the Thread.
Int32 messageCount { 0 }
 An approximate count of Messages in a Thread stops counting at 50.
StringWrapper permissions {}
 Computed permissions for the invoking user in the channel, including overwrites.
Int32 rateLimitPerUser { 0 }
 Amount of seconds a User has to wait before sending another Message.
std::unordered_map< Uint64, UserDatarecipients {}
 Recipients, in the case of a group Dm or m.
StringWrapper rtcRegion {}
 Real-time clock region.
ThreadMetadataData threadMetadata {}
 Metadata in the case that this Channel is a Thread.
StringWrapper topic {}
 The Channel's topic.
Int32 userLimit { 0 }
 User limit, in the case of voice channels.
Int32 videoQualityMode { 0 }
 Video quality mode.
- Public Data Members inherited from DiscordCoreAPI::ChannelData
Uint8 flags {}
 Flags combined as a bitmask.
Snowflake guildId {}
 Id of the Channel's Guild, if applicable.
Int32 memberCount { 0 }
 Count of members active in the Channel.
StringWrapper name {}
 Name of the Channel.
Snowflake ownerId {}
 Id of the Channel's owner.
Snowflake parentId {}
 Id of the Channel's parent Channel/category.
Uint16 position { 0 }
 The position of the Channel, in the Guild's Channel list.
StringWrapper topic {}
 Channel topic.
ChannelType type { ChannelType::Dm }
 The type of the Channel.
- Public Data Members inherited from DiscordCoreAPI::DiscordEntity
Snowflake id {}

Additional Inherited Members

- Public Member Functions inherited from DiscordCoreAPI::DiscordEntity
String getCreatedAtTimestamp (TimeFormat timeFormat)
 Converts the snowflake-id into a time and date stamp. More...

The documentation for this class was generated from the following files: