swc/bundler/tests/.cache/deno/857153b7516a8b7063c8dc3f79e72ac1ec479a10.ts
강동윤 d60c3242af
fix(swc): Fix bugs (#1739)
swc_bundler:
 - Fix cycle detection for complex circular imports. (denoland/deno#10752)

swc_ecma_transforms_typescript:
 - Allow using large values for an enum variant.
2021-05-25 14:30:17 +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;
}