1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-22 18:51:36 +02:00
server/dist/models/Activity.d.ts

88 lines
2.0 KiB
TypeScript
Raw Normal View History

2021-02-11 20:44:26 +01:00
import { User } from "..";
import { ClientStatus, Status } from "./Status";
2021-02-13 14:15:59 +01:00
import { Types } from "mongoose";
2021-02-11 20:44:26 +01:00
export interface Presence {
user: User;
guild_id?: bigint;
2021-02-11 20:44:26 +01:00
status: Status;
activities: Activity[];
client_status: ClientStatus;
}
export interface Activity {
name: string;
type: ActivityType;
url?: string;
2021-04-06 03:56:19 +02:00
created_at?: Date;
2021-02-11 20:44:26 +01:00
timestamps?: {
2021-04-06 03:56:19 +02:00
start?: number;
end?: number;
2021-02-11 20:44:26 +01:00
}[];
application_id?: bigint;
details?: string;
state?: string;
emoji?: {
name: string;
id?: bigint;
amimated?: boolean;
};
party?: {
id?: string;
size?: [number, number];
};
assets?: {
2021-04-06 03:56:19 +02:00
large_image?: string;
large_text?: string;
small_image?: string;
small_text?: string;
2021-02-11 20:44:26 +01:00
};
secrets?: {
join?: string;
spectate?: string;
match?: string;
};
instance?: boolean;
flags?: bigint;
}
2021-02-13 14:15:59 +01:00
export declare const Activity: {
name: StringConstructor;
type: NumberConstructor;
2021-04-06 03:56:19 +02:00
$url: StringConstructor;
$created_at: DateConstructor;
$timestamps: {
$start: NumberConstructor;
$end: NumberConstructor;
2021-02-13 14:15:59 +01:00
}[];
2021-04-06 03:56:19 +02:00
$application_id: typeof Types.Long;
$details: StringConstructor;
$state: StringConstructor;
$emoji: {
$name: StringConstructor;
$id: typeof Types.Long;
$amimated: BooleanConstructor;
2021-02-13 14:15:59 +01:00
};
2021-04-06 03:56:19 +02:00
$party: {
$id: StringConstructor;
$size: NumberConstructor[];
2021-02-13 14:15:59 +01:00
};
2021-04-06 03:56:19 +02:00
$assets: {
$large_image: StringConstructor;
$large_text: StringConstructor;
$small_image: StringConstructor;
$small_text: StringConstructor;
2021-02-13 14:15:59 +01:00
};
2021-04-06 03:56:19 +02:00
$secrets: {
$join: StringConstructor;
$spectate: StringConstructor;
$match: StringConstructor;
2021-02-13 14:15:59 +01:00
};
2021-04-06 03:56:19 +02:00
$instance: BooleanConstructor;
$flags: typeof Types.Long;
2021-02-13 14:15:59 +01:00
};
2021-02-11 20:44:26 +01:00
export declare enum ActivityType {
GAME = 0,
STREAMING = 1,
LISTENING = 2,
CUSTOM = 4,
COMPETING = 5
}