dressed
Version:
A sleek, serverless-ready Discord bot framework.
21 lines • 699 B
JavaScript
import { Routes } from "discord-api-types/v10";
import { callDiscord } from "../utils/call-discord.js";
/**
* Returns an object with a valid WSS URL which the app can use when Connecting to the Gateway.
*/
export async function getGateway() {
const res = await callDiscord(Routes.gateway(), {
method: "GET",
});
return res.json();
}
/**
* Returns an object based on the information in Get Gateway, plus additional metadata that can help during the operation of large or sharded bots.
*/
export async function getGatewayBot() {
const res = await callDiscord(Routes.gatewayBot(), {
method: "GET",
});
return res.json();
}
//# sourceMappingURL=gateway.js.map