Reference
Classes
Shard

Class: Shard

Constructors

new Shard()

new Shard(token, client, id): Shard

Parameters

ParameterType
tokenstring
clientClient
idnumber

Returns

Shard

Defined in

src/core/gateway/Shard.ts:22 (opens in a new tab)

Properties

PropertyModifierTypeDefined in
eventspublicShardEventssrc/core/gateway/Shard.ts:20 (opens in a new tab)
idpublicnumbersrc/core/gateway/Shard.ts:14 (opens in a new tab)
lastHearbeatAckpublicnumbersrc/core/gateway/Shard.ts:19 (opens in a new tab)
lastHearbeatSentpublicnumbersrc/core/gateway/Shard.ts:18 (opens in a new tab)
pingpublicnumbersrc/core/gateway/Shard.ts:17 (opens in a new tab)
readypublicbooleansrc/core/gateway/Shard.ts:16 (opens in a new tab)
spublicnumbersrc/core/gateway/Shard.ts:15 (opens in a new tab)
ws?publicWebSocketsrc/core/gateway/Shard.ts:13 (opens in a new tab)

Methods

connect()

connect(): void

Returns

void

Defined in

src/core/gateway/Shard.ts:43 (opens in a new tab)


sendPayload()

sendPayload(op, data): void

Parameters

ParameterType
opnumber
dataany

Returns

void

Defined in

src/core/gateway/Shard.ts:130 (opens in a new tab)