Search Results for

    Show / Hide Table of Contents

    Class DiscordChannelData

    Represents a discord Channel Structure API model. Docs: https://discord.com/developers/docs/resources/channel#channel-object-channel-structure

    Inheritance
    Object
    DiscordChannelData
    Implements
    IEquatable<DiscordChannelData>
    Inherited Members
    System.Object.Equals(System.Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Object.ToString()
    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 Source

    Bitrate

    The bitrate (in bits) of the voice channel.

    Declaration
    [JsonPropertyName("bitrate")]
    public int? Bitrate { get; set; }
    Property Value
    Type Description
    System.Nullable<Int32>
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    Icon

    Icon hash.

    Declaration
    [JsonPropertyName("icon")]
    public string Icon { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Id

    The id of this channel.

    Declaration
    [JsonPropertyName("id")]
    public ulong Id { get; set; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    Name

    The name of the channel (1-100 characters).

    Declaration
    [JsonPropertyName("name")]
    public string Name { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Nsfw

    Whether the channel is nsfw

    Declaration
    [JsonPropertyName("nsfw")]
    public bool? Nsfw { get; set; }
    Property Value
    Type Description
    System.Nullable<Boolean>
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    Position

    Sorting position of the channel.

    Declaration
    [JsonPropertyName("position")]
    public int? Position { get; set; }
    Property Value
    Type Description
    System.Nullable<Int32>
    | Improve this Doc View Source

    Recipients

    The recipients of the DM.

    Declaration
    [JsonPropertyName("recipients")]
    public IEnumerable<DiscordUserData> Recipients { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordUserData>
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    Topic

    The channel topic (0-1024 characters).

    Declaration
    [JsonPropertyName("topic")]
    public string Topic { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Type

    The type of channel.

    Declaration
    [JsonPropertyName("type")]
    public DiscordChannelType Type { get; set; }
    Property Value
    Type Description
    DiscordChannelType
    | Improve this Doc View Source

    UserLimit

    The user limit of the voice channel.

    Declaration
    [JsonPropertyName("user_limit")]
    public int? UserLimit { get; set; }
    Property Value
    Type Description
    System.Nullable<Int32>

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX