mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
14 lines
455 B
TypeScript
14 lines
455 B
TypeScript
import { assertEquals, assertExists } from "../deps.ts";
|
|
import { loadBot } from "../mod.ts";
|
|
|
|
Deno.test("[misc] Get gateway bot information", async () => {
|
|
const bot = loadBot();
|
|
const data = await bot.helpers.getGatewayBot();
|
|
|
|
assertExists(data);
|
|
assertEquals(data.url, "wss://gateway.discord.gg");
|
|
assertEquals(data.shards, 1);
|
|
assertEquals(data.sessionStartLimit.total, 1000);
|
|
assertEquals(data.sessionStartLimit.maxConcurrency, 1);
|
|
});
|