Fix user settings not saving properly and guild folders
This commit is contained in:
@@ -453,10 +453,10 @@ export interface UserSettings {
|
||||
gif_auto_play: boolean;
|
||||
// every top guild is displayed as a "folder"
|
||||
guild_folders: {
|
||||
color: number;
|
||||
color?: number;
|
||||
guild_ids: string[];
|
||||
id: number;
|
||||
name: string;
|
||||
id?: number;
|
||||
name?: string;
|
||||
}[];
|
||||
guild_positions: string[]; // guild ids ordered by position
|
||||
inline_attachment_media: boolean;
|
||||
|
||||
@@ -3,7 +3,7 @@ import { UserGuildSettings, ChannelOverride } from "@fosscord/util";
|
||||
// This sucks. I would use a DeepPartial, my own or typeorms, but they both generate inncorect schema
|
||||
export interface UserGuildSettingsSchema
|
||||
extends Partial<Omit<UserGuildSettings, "channel_overrides">> {
|
||||
channel_overrides: {
|
||||
channel_overrides?: {
|
||||
[channel_id: string]: Partial<ChannelOverride>;
|
||||
};
|
||||
}
|
||||
@@ -44,4 +44,5 @@ export * from "./ChannelPermissionOverwriteSchema";
|
||||
export * from "./UserGuildSettingsSchema";
|
||||
export * from "./GatewayPayloadSchema";
|
||||
export * from "./RolePositionUpdateSchema";
|
||||
export * from "./ChannelReorderSchema";
|
||||
export * from "./ChannelReorderSchema";
|
||||
export * from "./UserSettingsSchema";
|
||||
Reference in New Issue
Block a user