swc/bundler/tests/.cache/deno/9bae15a49d4944fe8006a3c7c7bfccd2ffcf0ae5.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

26 lines
912 B
TypeScript

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/gateway/ready.ts
import { UnavailableGuild } from "../guilds/unavailable_guild.ts";
import { Application } from "../applications/application.ts";
import { User } from "../users/user.ts";
import { SnakeCasedPropertiesDeep } from "../util.ts";
/** https://discord.com/developers/docs/topics/gateway#ready */
export interface Ready {
/** Gateway version */
v: number;
/** Information about the user including email */
user: User;
/** The guilds the user is in */
guilds: UnavailableGuild[];
/** Used for resuming connections */
sessionId: string;
/** The shard information associated with this session, if sent when identifying */
shard?: [number, number];
/** Contains id and flags */
application: Partial<Application> & Pick<Application, "id" | "flags">;
}
export type DiscordReady = SnakeCasedPropertiesDeep<Ready>;