Options
All
  • Public
  • Public/Protected
  • All
Menu

Class used for managing shards for the user.

This class is automatically instantiated by the library and is documented for reference.

Hierarchy

  • ShardManager

Index

Constructors

  • Create a new ShardManager.

    Parameters

    Returns ShardManager

Properties

_addListener: any

Add event listeners to a shard to that the manager can act on received events.

param shard

Shard to add the event listeners to.

_checkDisconnect: any

Checks if all shards spawned by this manager are disconnected.

_checkReady: any

Checks if all shards spawned by this manager are ready.

concurrencyBucket: null | RatelimitBucket
identifyBucket: RatelimitBucket
options: Omit<IClientOptions, "snowtransferInstance"> & { endpoint?: string; token: string }
shards: {}

Type declaration

default: typeof ShardManager

Methods

  • disconnect(): void
  • Disconnect all shards facilitated by this manager.

    Returns void

  • Update the status of all currently connected shards which have been spawned by this manager.

    Parameters

    Returns Promise<void>

  • Send an OP 8 REQUEST_GUILD_MEMBERS with a certain shard.

    Parameters

    Returns Promise<void>

  • Update the status of a single connected shard which has been spawned by this manager.

    Parameters

    Returns Promise<void>

  • spawn(): void
  • Create shard instances and add them to the connection queue.

    Returns void

  • Send an OP 4 VOICE_STATE_UPDATE with a certain shard.

    Parameters

    Returns Promise<void>

Generated using TypeDoc