Class: Shard
Constructors
new Shard()
new Shard(
token
,client
,id
):Shard
Parameters
Parameter | Type |
---|---|
token | string |
client | Client |
id | number |
Returns
Defined in
src/core/gateway/Shard.ts:22 (opens in a new tab)
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
events | public | ShardEvents | src/core/gateway/Shard.ts:20 (opens in a new tab) |
id | public | number | src/core/gateway/Shard.ts:14 (opens in a new tab) |
lastHearbeatAck | public | number | src/core/gateway/Shard.ts:19 (opens in a new tab) |
lastHearbeatSent | public | number | src/core/gateway/Shard.ts:18 (opens in a new tab) |
ping | public | number | src/core/gateway/Shard.ts:17 (opens in a new tab) |
ready | public | boolean | src/core/gateway/Shard.ts:16 (opens in a new tab) |
s | public | number | src/core/gateway/Shard.ts:15 (opens in a new tab) |
ws? | public | WebSocket | src/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
Parameter | Type |
---|---|
op | number |
data | any |
Returns
void