Search Results for

    Show / Hide Table of Contents

    Class SocketChannel

    Represents a WebSocket-based channel.

    Inheritance
    Object
    SocketEntity<UInt64>
    SocketChannel
    SocketDMChannel
    SocketGroupChannel
    SocketGuildChannel
    Implements
    IEntity<UInt64>
    IChannel
    ISnowflakeEntity
    IEntity<UInt64>
    Inherited Members
    SocketEntity<UInt64>.Id
    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 Source

    CreatedAt

    Gets when the channel is created.

    Declaration
    public virtual DateTimeOffset CreatedAt { get; }
    Property Value
    Type Description
    DateTimeOffset
    | Improve this Doc View Source

    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 Source

    GetUser(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.

    Implements

    IEntity<TId>
    IChannel
    ISnowflakeEntity
    IEntity<TId>

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.6.0