mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
9 lines
390 B
TypeScript
9 lines
390 B
TypeScript
import { rest } from "../../rest/rest.ts";
|
|
import type { GetGatewayBot } from "../../types/gateway/get_gateway_bot.ts";
|
|
import { endpoints } from "../../util/constants.ts";
|
|
|
|
/** Get the bots Gateway metadata that can help during the operation of large or sharded bots. */
|
|
export async function getGatewayBot() {
|
|
return await rest.runMethod<GetGatewayBot>("get", endpoints.GATEWAY_BOT);
|
|
}
|