Represents a Shard's WebSocket connection
Extends
EventEmitterEmitted when a shard's WebSocket closes.
Name | Type | Optional | Description |
---|---|---|---|
event | CloseEvent | No | The received event |
Name | Type | Optional | Description |
---|---|---|---|
event | Event | No | None |
listener | (...args: WebSocketShardEventTypes[Event]) => Awaitable<void> | No | None |
Name | Type | Optional | Description |
---|---|---|---|
event | Event | No | None |
listener | (...args: WebSocketShardEventTypes[Event]) => Awaitable<void> | No | None |
Adds a packet to the queue to be sent to the gateway. If you use this method, make sure you understand that you need to provide a full [Payload](https://discord.com/developers/docs/topics/gateway#commands-and-events-gateway-commands). Do not use this method if you don't know what you're doing.