Class SocketChannel
Represents a WebSocket-based channel.
Inheritance
SocketChannel
Inherited Members
Namespace: Discord.WebSocket
Assembly: Discord.Net.WebSocket.dll
Syntax
public abstract class SocketChannel : SocketEntity<ulong>, IEntity<ulong>, IChannel, ISnowflakeEntity, IEntity<ulong>
Properties
| Improve this Doc View SourceCreatedAt
Gets when the channel is created.
Declaration
public virtual DateTimeOffset CreatedAt { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
Users
Gets a collection of users from the WebSocket cache.
Declaration
public IReadOnlyCollection<SocketUser> Users { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<SocketUser> |
Methods
| Improve this Doc View SourceGetUser(UInt64)
Gets a generic user from this channel.
Declaration
public SocketUser GetUser(ulong id)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | id | The snowflake identifier of the user. |
Returns
Type | Description |
---|---|
SocketUser | A generic WebSocket-based user associated with the snowflake identifier. |