Interface IDiscordChannel
Represents a discord Channel Structure API model. Docs: https://discord.com/developers/docs/resources/channel#channel-object-channel-structure
Namespace: Color_Chan.Discord.Core.Common.Models
Assembly: Color-Chan.Discord.Core.dll
Syntax
public interface IDiscordChannel
Properties
| Improve this Doc View SourceBitrate
The bitrate (in bits) of the voice channel.
Declaration
int? Bitrate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
CategoryId
For guild channels: id of the parent category for a channel (each parent category can contain up to 50 channels), for threads: id of the text channel this thread was created
Declaration
ulong? CategoryId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
GuildId
The id of the guild (may be missing for some channel objects received over gateway guild dispatches).
Declaration
ulong? GuildId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Icon
Icon hash.
Declaration
string Icon { get; set; }
Property Value
Type | Description |
---|---|
String |
Id
The id of this channel.
Declaration
ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
LastMessageId
The id of the last message sent in this channel (may not point to an existing or valid message).
Declaration
ulong? LastMessageId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
LastPinTimestamp
When the last pinned message was pinned. This may be null in events such as GUILD_CREATE when a message is not pinned.
Declaration
DateTimeOffset? LastPinTimestamp { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTimeOffset> |
Name
The name of the channel (1-100 characters).
Declaration
string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Nsfw
Whether the channel is nsfw
Declaration
bool? Nsfw { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
PermissionOverwrites
Explicit permission overwrites for members and roles.
Declaration
IEnumerable<IDiscordOverwrite> PermissionOverwrites { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordOverwrite> |
Position
Sorting position of the channel.
Declaration
int? Position { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
Recipients
The recipients of the DM.
Declaration
IEnumerable<IDiscordUser> Recipients { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordUser> |
SlowMode
Amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission manage_messages or manage_channel, are unaffected
Declaration
int? SlowMode { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
Topic
The channel topic (0-1024 characters).
Declaration
string Topic { get; set; }
Property Value
Type | Description |
---|---|
String |
Type
The type of channel.
Declaration
DiscordChannelType Type { get; set; }
Property Value
Type | Description |
---|---|
DiscordChannelType |
UserLimit
The user limit of the voice channel.
Declaration
int? UserLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |