Class DiscordChannelData
Represents a discord Channel Structure API model. Docs: https://discord.com/developers/docs/resources/channel#channel-object-channel-structure
Implements
Inherited Members
Namespace: Color_Chan.Discord.Core.Common.API.DataModels
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordChannelData : IEquatable<DiscordChannelData>
Properties
| Improve this Doc View SourceBitrate
The bitrate (in bits) of the voice channel.
Declaration
[JsonPropertyName("bitrate")]
public 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
[JsonPropertyName("parent_id")]
public 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
[JsonPropertyName("guild_id")]
public ulong? GuildId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Icon
Icon hash.
Declaration
[JsonPropertyName("icon")]
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
String |
Id
The id of this channel.
Declaration
[JsonPropertyName("id")]
public 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
[JsonPropertyName("last_message_id")]
public 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
[JsonPropertyName("last_pin_timestamp")]
public DateTimeOffset? LastPinTimestamp { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTimeOffset> |
Name
The name of the channel (1-100 characters).
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Nsfw
Whether the channel is nsfw
Declaration
[JsonPropertyName("nsfw")]
public bool? Nsfw { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
PermissionOverwrites
Explicit permission overwrites for members and roles.
Declaration
[JsonPropertyName("permission_overwrites")]
public IEnumerable<DiscordOverwriteData> PermissionOverwrites { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordOverwriteData> |
Position
Sorting position of the channel.
Declaration
[JsonPropertyName("position")]
public int? Position { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
Recipients
The recipients of the DM.
Declaration
[JsonPropertyName("recipients")]
public IEnumerable<DiscordUserData> Recipients { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordUserData> |
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
[JsonPropertyName("rate_limit_per_user")]
public int? SlowMode { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |
Topic
The channel topic (0-1024 characters).
Declaration
[JsonPropertyName("topic")]
public string Topic { get; set; }
Property Value
Type | Description |
---|---|
String |
Type
The type of channel.
Declaration
[JsonPropertyName("type")]
public DiscordChannelType Type { get; set; }
Property Value
Type | Description |
---|---|
DiscordChannelType |
UserLimit
The user limit of the voice channel.
Declaration
[JsonPropertyName("user_limit")]
public int? UserLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Int32> |