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

21 lines
685 B
TypeScript

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/activity/presence_update.ts
import { User } from "../users/user.ts";
import { Activity } from "./activity.ts";
import { ClientStatus } from "./client_status.ts";
/** https://discord.com/developers/docs/topics/gateway#presence-update */
export interface PresenceUpdate {
/** The user presence is being updated for */
user: User;
/** id of the guild */
guildId: string;
/** Either "idle", "dnd", "online", or "offline" */
status: "idle" | "dnd" | "online" | "offline";
/** User's current activities */
activities: Activity[];
/** User's platform-dependent status */
clientStatus: ClientStatus;
}