This commit is contained in:
Madeline
2023-01-05 17:16:55 +11:00
parent a665a39523
commit df449169bd
124 changed files with 3639 additions and 1697 deletions
@@ -3,5 +3,5 @@ export interface ApplicationAuthorizeSchema {
guild_id: string;
permissions: string;
captcha_key?: string;
code?: string; // 2fa code
}
code?: string; // 2fa code
}
+1 -1
View File
@@ -1,4 +1,4 @@
export interface ApplicationCreateSchema {
name: string;
team_id?: string | number;
}
}
+1 -1
View File
@@ -11,4 +11,4 @@ export interface ApplicationModifySchema {
bot_public?: boolean;
bot_require_code_grant?: boolean;
flags?: number;
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
export interface BotModifySchema {
avatar?: string;
username?: string;
}
}
@@ -1,4 +1,4 @@
import { ChannelPermissionOverwrite } from "@fosscord/util";
export interface ChannelPermissionOverwriteSchema
extends ChannelPermissionOverwrite {}
extends ChannelPermissionOverwrite {}
+1 -1
View File
@@ -3,4 +3,4 @@ export type ChannelReorderSchema = {
position?: number;
lock_permissions?: boolean;
parent_id?: string;
}[];
}[];
+1 -1
View File
@@ -5,4 +5,4 @@ export const PayloadSchema = {
$d: new Tuple(Object, Number), // or number for heartbeat sequence
$s: Number,
$t: String,
};
};
+2 -1
View File
@@ -1,6 +1,7 @@
import { GuildCreateSchema } from "@fosscord/util";
export interface GuildUpdateSchema extends Omit<GuildCreateSchema, "channels" | "name"> {
export interface GuildUpdateSchema
extends Omit<GuildCreateSchema, "channels" | "name"> {
name?: string;
banner?: string | null;
splash?: string | null;
@@ -5,7 +5,7 @@ export interface MemberChangeProfileSchema {
pronouns?: string;
/*
* @items.type integer
*/
* @items.type integer
*/
theme_colors?: [number, number];
}
+1 -1
View File
@@ -1,4 +1,4 @@
export type RolePositionUpdateSchema = {
id: string;
position: number;
}[];
}[];
+1 -1
View File
@@ -6,4 +6,4 @@ export interface UserGuildSettingsSchema
channel_overrides?: {
[channel_id: string]: Partial<ChannelOverride>;
};
}
}
+3 -3
View File
@@ -5,7 +5,7 @@ export interface UserProfileModifySchema {
pronouns?: string;
/*
* @items.type integer
*/
theme_colors?: [number, number]
* @items.type integer
*/
theme_colors?: [number, number];
}
+1 -1
View File
@@ -1,3 +1,3 @@
import { UserSettings } from "@fosscord/util";
export interface UserSettingsSchema extends Partial<UserSettings> {}
export interface UserSettingsSchema extends Partial<UserSettings> {}
+1 -1
View File
@@ -59,4 +59,4 @@ export * from "./UserSettingsSchema";
export * from "./BotModifySchema";
export * from "./ApplicationModifySchema";
export * from "./ApplicationCreateSchema";
export * from "./ApplicationAuthorizeSchema";
export * from "./ApplicationAuthorizeSchema";