mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
21 lines
685 B
TypeScript
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;
|
||
|
}
|