Class GlobalChannelManager

Manages channels on the global scope. This can hold channels of any type, with all of them extending Channel. You will likely need to cast the returned values from cache or fetches

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

cache: Collection<string, Channel> = ...
client: Client

Accessors

Methods

  • Fetch a channel by ID Notice: if you're using TypeScript, you will need to upcast to your desired channel type.

    Parameters

    • channelId: string

      ID of the channel to fetch

    • Optional force: boolean

      Whether to force a fetch from the API

    Returns Promise<Channel>

    Promise that resolves with the fetched channel

Generated using TypeDoc