Table of Contents

Struct SocketChannelInfo

Namespace
Discord.WebSocket
Assembly
Discord.Net.WebSocket.dll

Represents information for a channel.

public struct SocketChannelInfo
Inherited Members

Properties

AutoArchiveDuration

Gets the duration of time before the thread is automatically archived after no activity.

public readonly ThreadArchiveDuration? AutoArchiveDuration { get; }

Property Value

ThreadArchiveDuration?

Remarks

null if the value was not updated in this entry.

Bitrate

Gets the bit-rate that the clients in this voice channel are requested to use.

public readonly int? Bitrate { get; }

Property Value

int?

An int representing the bit-rate (bps) that this voice channel defines and requests the client(s) to use.

Remarks

null if the value was not updated in this entry.

ChannelType

Gets the type of this channel.

public readonly ChannelType? ChannelType { get; }

Property Value

ChannelType?

The channel type of this channel; null if not applicable.

DefaultArchiveDuration

Gets the default auto-archive duration for client-created threads in this channel.

public readonly ThreadArchiveDuration? DefaultArchiveDuration { get; }

Property Value

ThreadArchiveDuration?

The default auto-archive duration for thread creation in this channel.

Remarks

The value of this property does not affect API thread creation, it will not respect this value.

DefaultReactionEmoji

Gets the emoji to show in the add reaction button on a thread in a forum channel

public readonly IEmote DefaultReactionEmoji { get; }

Property Value

IEmote

Remarks

If the emoji is Emote only the Id will be populated. Use GetEmoteAsync(ulong, RequestOptions) to get the emoji.

DefaultSlowModeInterval

Gets the current default slow-mode delay for threads in this forum channel.

public readonly int? DefaultSlowModeInterval { get; }

Property Value

int?

An int representing the time in seconds required before the user can send another message; 0 if disabled.

Remarks

null if the value was not updated in this entry.

Flags

Gets the flags related to this channel.

public readonly ChannelFlags? Flags { get; }

Property Value

ChannelFlags?

A channel's flags, if any is associated.

Remarks

This value is determined by bitwise OR-ing ChannelFlags values together.

ForumTags

Gets a collection of tags inside of this forum channel.

public readonly IReadOnlyCollection<ForumTag> ForumTags { get; }

Property Value

IReadOnlyCollection<ForumTag>

Remarks

null if the value was not updated in this entry.

IsNsfw

Gets a value that indicates whether the channel is NSFW.

public readonly bool? IsNsfw { get; }

Property Value

bool?

true if the channel has the NSFW flag enabled; otherwise false.

Remarks

null if the value was not updated in this entry.

Name

Gets the name of this channel.

public readonly string Name { get; }

Property Value

string

A string containing the name of this channel.

Remarks

null if the value was not updated in this entry.

RTCRegion

Gets the RTC region for this audio channel.

public readonly string RTCRegion { get; }

Property Value

string

Remarks

This property can be null.

SlowModeInterval

Gets the current slow-mode delay for this channel.

public readonly int? SlowModeInterval { get; }

Property Value

int?

An int representing the time in seconds required before the user can send another message; 0 if disabled.

Remarks

null if the value was not updated in this entry.

Topic

Gets the current topic for this text channel.

public readonly string Topic { get; }

Property Value

string

A string representing the topic set in the channel; null if none is set.

Remarks

null if the value was not updated in this entry.

UserLimit

Gets the max number of users allowed to be connected to this channel at once.

public readonly int? UserLimit { get; }

Property Value

int?

An int representing the maximum number of users that are allowed to be connected to this channel at once; null if a limit is not set.

Remarks

null if the value was not updated in this entry.

VideoQualityMode

Gets the video quality mode for this channel.

public readonly VideoQualityMode? VideoQualityMode { get; }

Property Value

VideoQualityMode?

Remarks

null if the value was not updated in this entry.