Class SocketChannel
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
CreatedAt
Gets when the channel is created.
public virtual DateTimeOffset CreatedAt { get; }
Property Value
Users
Gets a collection of users from the WebSocket cache.
public IReadOnlyCollection<SocketUser> Users { get; }
Property Value
Methods
GetUser(ulong)
Gets a generic user from this channel.
public SocketUser GetUser(ulong id)
Parameters
id
ulongThe snowflake identifier of the user.
Returns
- SocketUser
A generic WebSocket-based user associated with the snowflake identifier.