Skip to main content

Module channel

Module channel 

Source
Expand description

Channels: guild text, voice, forum and media channels, threads and direct messages.

A Channel is an enum with one variant per ChannelType, each holding a struct with the fields that kind of channel has (D-057).

Structs§

CategoryChannel
A category that organizes channels.
ChannelFlags
Flags of a channel.
DefaultReaction
The emoji of the add-reaction button on posts of a forum or media channel. Exactly one of the fields is set.
DirectoryChannel
The directory channel of a Student Hub.
DmChannel
A direct message between the current user and one other user.
FollowedChannel
The result of following an announcement channel.
ForumChannel
A forum or media channel: it only contains threads (posts).
ForumTag
A tag that can be applied to posts of a forum or media channel.
GroupDmChannel
A direct message between several users.
Overwrite
A permission overwrite: permissions explicitly allowed or denied for a role or member in a channel.
TextChannel
A text or announcement channel in a guild.
ThreadChannel
A thread: a temporary sub-channel of a text, announcement, forum or media channel.
ThreadMember
A user’s membership in a thread.
ThreadMemberFlags
The settings of a ThreadMember, currently about notifications.
ThreadMetadata
Thread-specific data.
UnknownChannel
A channel of a ChannelType this version of the library does not know about. Only the fields every channel has are kept.
VoiceChannel
A voice or stage channel in a guild.

Enums§

AutoArchiveDuration
After how many minutes of inactivity a thread is archived (hidden from the channel list). Discord only accepts these values.
Channel
A channel of any kind (D-057).
ChannelType
The type of a channel.
ForumLayoutType
How the posts of a forum channel are displayed.
OverwriteType
Whether an Overwrite is for a role or a member.
SortOrderType
How the posts of a forum or media channel are sorted.
VideoQualityMode
The camera video quality of a voice channel.