mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
14 lines
384 B
TypeScript
14 lines
384 B
TypeScript
import type { Bot } from "../../bot.ts";
|
|
import { DiscordApplication } from "../../types/discord.ts";
|
|
|
|
/** Get the applications info */
|
|
export async function getApplicationInfo(bot: Bot) {
|
|
const result = await bot.rest.runMethod<DiscordApplication>(
|
|
bot.rest,
|
|
"GET",
|
|
bot.constants.routes.OAUTH2_APPLICATION(),
|
|
);
|
|
|
|
return bot.transformers.application(bot, result);
|
|
}
|