feat(GatewayActivity): add missing fields (#39)

Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com>
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
This commit is contained in:
Advaith
2020-12-24 05:29:33 -08:00
committed by GitHub
parent 70b427bbb3
commit dccdfe044f

View File

@@ -59,20 +59,31 @@ export type GatewayPresenceClientStatus = Partial<Record<'desktop' | 'mobile' |
* https://discord.com/developers/docs/topics/gateway#activity-object-activity-structure
*/
export interface GatewayActivity {
id: string;
name: string;
type: ActivityType;
url?: string | null;
created_at: number;
timestamps?: GatewayActivityTimestamps;
sync_id?: string;
platform?: ActivityPlatform;
application_id?: string;
details?: string | null;
state?: string | null;
emoji?: GatewayActivityEmoji;
session_id?: string;
party?: GatewayActivityParty;
assets?: GatewayActivityAssets;
secrets?: GatewayActivitySecrets;
instance?: boolean;
flags?: ActivityFlags;
buttons?: string[] | GatewayActivityButton[];
}
export enum ActivityPlatform {
Desktop = 'desktop',
Samsung = 'samsung',
Xbox = 'xbox',
}
/**
@@ -132,3 +143,8 @@ export const enum ActivityFlags {
SYNC = 1 << 4,
PLAY = 1 << 5,
}
export interface GatewayActivityButton {
label: string;
url: string;
}