swc/crates/swc_bundler/tests/.cache/deno/857153b7516a8b7063c8dc3f79e72ac1ec479a10.ts
2021-11-09 20:42:49 +09:00

19 lines
774 B
TypeScript

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/oauth2/get_current_authorization_information.ts
import { User } from "../users/user.ts";
import { Application } from "../applications/application.ts";
import { DiscordOAuth2Scopes } from "./scopes.ts";
/** https://discord.com/developers/docs/topics/oauth2#get-current-authorization-information-response-structure */
export interface GetCurrentAuthorizationInformation {
/** The current application */
application: Partial<Application>;
/** The scopes the user has authorized the application for */
scopes: DiscordOAuth2Scopes[];
/** When the access token expires */
expires: string;
/** The user who has authorized, if the user has authorized with the `identify` scope */
user?: User;
}