Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discordeno/gateway/mod.ts

Discord API library for Deno
Latest
import * as discordeno from "https://deno.land/x/discordeno@18.0.1/gateway/mod.ts";

Functions

Handler used to determine max number of shards to use based upon the max concurrency.

Create a new Gateway Manager.

Create a new Shard manager. This does not manage a specific range of Shard but the provided Shards on create or when an identify is requested. The aim of this is to provide an easy to use manager which can be used by workers or any other kind of separate process.

Begin spawning shards.

Allows users to hook in and change to communicate to different workers across different servers or anything they like. For example using redis pubsub to talk to other servers.

Type Aliases

This is a Shard manager. This does not manage a specific range of Shard but the provided Shards on create or when an identify is requested. The aim of this is to provide an easy to use manager which can be used by workers or any other kind of separate process.