Table of Contents

Class SocketChannel

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

Represents a WebSocket-based channel.

public abstract class SocketChannel : SocketEntity<ulong>, IChannel, ISnowflakeEntity, IEntity<ulong>
Inheritance
SocketChannel
Implements
Derived
Inherited Members
Extension Methods

Properties

ChannelType

Get the type of this channel.

public ChannelType ChannelType { get; }

Property Value

ChannelType

CreatedAt

Gets when the channel is created.

public virtual DateTimeOffset CreatedAt { get; }

Property Value

DateTimeOffset

Users

Gets a collection of users from the WebSocket cache.

public IReadOnlyCollection<SocketUser> Users { get; }

Property Value

IReadOnlyCollection<SocketUser>

Methods

GetUser(ulong)

Gets a generic user from this channel.

public SocketUser GetUser(ulong id)

Parameters

id ulong

The snowflake identifier of the user.

Returns

SocketUser

A generic WebSocket-based user associated with the snowflake identifier.