🐛 fix Activity Model
This commit is contained in:
parent
a888147dfc
commit
10203787a3
@ -14,10 +14,10 @@ export interface Activity {
|
|||||||
name: string;
|
name: string;
|
||||||
type: ActivityType;
|
type: ActivityType;
|
||||||
url?: string;
|
url?: string;
|
||||||
created_at: Date;
|
created_at?: Date;
|
||||||
timestamps?: {
|
timestamps?: {
|
||||||
start: number;
|
start?: number;
|
||||||
end: number;
|
end?: number;
|
||||||
}[];
|
}[];
|
||||||
application_id?: bigint;
|
application_id?: bigint;
|
||||||
details?: string;
|
details?: string;
|
||||||
@ -32,10 +32,10 @@ export interface Activity {
|
|||||||
size?: [number, number];
|
size?: [number, number];
|
||||||
};
|
};
|
||||||
assets?: {
|
assets?: {
|
||||||
large_image: string;
|
large_image?: string;
|
||||||
large_text: string;
|
large_text?: string;
|
||||||
small_image: string;
|
small_image?: string;
|
||||||
small_text: string;
|
small_text?: string;
|
||||||
};
|
};
|
||||||
secrets?: {
|
secrets?: {
|
||||||
join?: string;
|
join?: string;
|
||||||
@ -49,39 +49,39 @@ export interface Activity {
|
|||||||
export const Activity = {
|
export const Activity = {
|
||||||
name: String,
|
name: String,
|
||||||
type: Number,
|
type: Number,
|
||||||
url: String,
|
$url: String,
|
||||||
created_at: Date,
|
$created_at: Date,
|
||||||
timestamps: [
|
$timestamps: [
|
||||||
{
|
{
|
||||||
start: Number,
|
$start: Number,
|
||||||
end: Number,
|
$end: Number,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
application_id: Types.Long,
|
$application_id: Types.Long,
|
||||||
details: String,
|
$details: String,
|
||||||
state: String,
|
$state: String,
|
||||||
emoji: {
|
$emoji: {
|
||||||
name: String,
|
$name: String,
|
||||||
id: Types.Long,
|
$id: Types.Long,
|
||||||
amimated: Boolean,
|
$amimated: Boolean,
|
||||||
},
|
},
|
||||||
party: {
|
$party: {
|
||||||
id: String,
|
$id: String,
|
||||||
size: [Number, Number],
|
$size: [Number, Number],
|
||||||
},
|
},
|
||||||
assets: {
|
$assets: {
|
||||||
large_image: String,
|
$large_image: String,
|
||||||
large_text: String,
|
$large_text: String,
|
||||||
small_image: String,
|
$small_image: String,
|
||||||
small_text: String,
|
$small_text: String,
|
||||||
},
|
},
|
||||||
secrets: {
|
$secrets: {
|
||||||
join: String,
|
$join: String,
|
||||||
spectate: String,
|
$spectate: String,
|
||||||
match: String,
|
$match: String,
|
||||||
},
|
},
|
||||||
instance: Boolean,
|
$instance: Boolean,
|
||||||
flags: Types.Long,
|
$flags: Types.Long,
|
||||||
};
|
};
|
||||||
|
|
||||||
export enum ActivityType {
|
export enum ActivityType {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user