1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-14 14:42:55 +01: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-03-08 18:41:31 +01:00
created_at: Date;
2021-02-11 20:44:26 +01:00
timestamps?: {
start: number;
end: number;
}[];
application_id?: bigint;
details?: string;
state?: string;
emoji?: {
name: string;
id?: bigint;
amimated?: boolean;
};
party?: {
id?: string;
size?: [number, number];
};
assets?: {
large_image: string;
large_text: string;
small_image: string;
small_text: string;
};
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;
url: StringConstructor;
2021-03-08 18:41:31 +01:00
created_at: DateConstructor;
2021-02-13 14:15:59 +01:00
timestamps: {
start: NumberConstructor;
end: NumberConstructor;
}[];
application_id: typeof Types.Long;
details: StringConstructor;
state: StringConstructor;
emoji: {
name: StringConstructor;
id: typeof Types.Long;
amimated: BooleanConstructor;
};
party: {
id: StringConstructor;
size: NumberConstructor[];
};
assets: {
large_image: StringConstructor;
large_text: StringConstructor;
small_image: StringConstructor;
small_text: StringConstructor;
};
secrets: {
join: StringConstructor;
spectate: StringConstructor;
match: StringConstructor;
};
instance: BooleanConstructor;
flags: typeof Types.Long;
};
2021-02-11 20:44:26 +01:00
export declare enum ActivityType {
GAME = 0,
STREAMING = 1,
LISTENING = 2,
CUSTOM = 4,
COMPETING = 5
}