swc/crates/swc_bundler/tests/.cache/deno/9bae15a49d4944fe8006a3c7c7bfccd2ffcf0ae5.ts
2021-11-09 20:42:49 +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>;