Fix user settings not saving properly and guild folders

This commit is contained in:
Madeline
2022-10-28 19:23:02 +11:00
parent 78962acc9d
commit 00e3606f7c
6 changed files with 2953 additions and 2057 deletions
+1 -1
View File
@@ -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>;
};
}
+2 -1
View File
@@ -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";