swc/bundler/tests/.cache/deno/371e8eaff6ed73e0db9582bfc9fafddccf08753f.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

45 lines
1.7 KiB
TypeScript

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/activity/activity.ts
import { ActivityAssets } from "./activity_assets.ts";
import { ActivityButton } from "./activity_button.ts";
import { ActivityEmoji } from "./activity_emoji.ts";
import { ActivityParty } from "./activity_party.ts";
import { ActivitySecrets } from "./activity_secrets.ts";
import { ActivityTimestamps } from "./activity_timestamps.ts";
import { DiscordActivityTypes } from "./activity_types.ts";
/** https://discord.com/developers/docs/topics/gateway#activity-object */
export interface Activity {
/** The activity's name */
name: string;
/** Activity type */
type: DiscordActivityTypes;
/** Stream url, is validated when type is 1 */
url?: string | null;
/** Unix timestamp of when the activity was added to the user's session */
createdAt: number;
/** Unix timestamps for start and/or end of the game */
timestamps?: ActivityTimestamps;
/** Application id for the game */
applicationId?: string;
/** What the player is currently doing */
details?: string | null;
/** The user's current party status */
state?: string | null;
/** The emoji used for a custom status */
emoji?: ActivityEmoji | null;
/** Information for the current party of the player */
party?: ActivityParty;
/** Images for the presence and their hover texts */
assets?: ActivityAssets;
/** Secrets for Rich Presence joining and spectating */
secrets?: ActivitySecrets;
/** Whether or not the activity is an instanced game session */
instance?: boolean;
/** Activity flags `OR`d together, describes what the payload includes */
flags?: number;
/** The custom buttons shown in the Rich Presence (max 2) */
buttons?: ActivityButton[];
}