mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-19 04:38:17 +00:00
7c3743e024
* Update channel.ts * Update gateway.ts * Update guild.ts * Update member.ts * Update message.ts * Update oauth.ts * Update webhook.ts * move things arrouond * Update guild.ts * Update src/api/handlers/webhook.ts * stop linter complains * add this back Co-authored-by: Ayyan <ayyantee@gmail.com>
13 lines
417 B
TypeScript
13 lines
417 B
TypeScript
import { RequestManager } from "../../rest/request_manager.ts";
|
|
import { OAuthApplication } from "../../types/oauth.ts";
|
|
import { endpoints } from "../../util/constants.ts";
|
|
|
|
/** Returns the bot's OAuth2 application object without `flags`. */
|
|
export async function getApplicationInformation() {
|
|
const result = await RequestManager.get(
|
|
endpoints.OAUTH2_APPLICATION,
|
|
);
|
|
|
|
return result as OAuthApplication;
|
|
}
|