oapi: bug fixes
This commit is contained in:
@@ -17,11 +17,9 @@
|
||||
*/
|
||||
|
||||
export interface AckBulkSchema {
|
||||
read_states: [
|
||||
{
|
||||
channel_id: string;
|
||||
message_id: string;
|
||||
read_state_type: number; // WHat is this?
|
||||
},
|
||||
];
|
||||
read_states: {
|
||||
channel_id: string;
|
||||
message_id: string;
|
||||
read_state_type: number; // WHat is this?
|
||||
}[];
|
||||
}
|
||||
|
||||
@@ -109,7 +109,11 @@ export interface IdentifySchema {
|
||||
compress?: boolean;
|
||||
large_threshold?: number;
|
||||
largeThreshold?: number;
|
||||
shard?: [bigint, bigint];
|
||||
/**
|
||||
* @minItems 2
|
||||
* @maxItems 2
|
||||
*/
|
||||
shard?: bigint[]; // puyo: changed from [bigint, bigint] because it breaks openapi
|
||||
guild_subscriptions?: boolean;
|
||||
capabilities?: number;
|
||||
client_state?: {
|
||||
|
||||
@@ -19,7 +19,12 @@
|
||||
export interface LazyRequestSchema {
|
||||
guild_id: string;
|
||||
channels?: {
|
||||
[key: string]: [number, number][];
|
||||
/**
|
||||
* @items.type integer
|
||||
* @minItems 2
|
||||
* @maxItems 2
|
||||
*/
|
||||
[key: string]: number[][]; // puyo: changed from [number, number] because it breaks openapi
|
||||
};
|
||||
activities?: boolean;
|
||||
threads?: boolean;
|
||||
|
||||
@@ -21,9 +21,9 @@ export interface MemberChangeProfileSchema {
|
||||
nick?: string;
|
||||
bio?: string;
|
||||
pronouns?: string;
|
||||
|
||||
/*
|
||||
* @items.type integer
|
||||
/**
|
||||
* @minItems 2
|
||||
* @maxItems 2
|
||||
*/
|
||||
theme_colors?: [number, number];
|
||||
theme_colors?: number[]; // puyo: changed from [number, number] because it breaks openapi
|
||||
}
|
||||
|
||||
@@ -21,9 +21,9 @@ export interface UserProfileModifySchema {
|
||||
accent_color?: number | null;
|
||||
banner?: string | null;
|
||||
pronouns?: string;
|
||||
|
||||
/*
|
||||
* @items.type integer
|
||||
/**
|
||||
* @minItems 2
|
||||
* @maxItems 2
|
||||
*/
|
||||
theme_colors?: [number, number];
|
||||
theme_colors?: number[]; // puyo: changed from [number, number] because it breaks openapi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user