import { type CreateShardManager } from "https://deno.land/x/oasis@2.1.0/tests/deps.ts";
Properties
optional
createShardOptions: Omit<CreateShard, | "id"
| "totalShards"
| "requestIdentify"
| "gatewayConfig"
Options which are used to create a new Shard.
gatewayConfig: PickPartial<ShardGatewayConfig, "token">
Gateway configuration which is used when creating a Shard.
optional
createShardOptions: Omit<CreateShard, | "id"
| "totalShards"
| "requestIdentify"
| "gatewayConfig"
Options which are used to create a new Shard.
gatewayConfig: PickPartial<ShardGatewayConfig, "token">
Gateway configuration which is used when creating a Shard.
Methods
handleMessage(shard: Shard, message: DiscordGatewayPayload): unknown
This function is used when a shard receives any message from Discord.
This function communicates with the parent manager, in order to know whether this manager is allowed to identify a new shard. #
handleMessage(shard: Shard, message: DiscordGatewayPayload): unknown
This function is used when a shard receives any message from Discord.