summary refs log tree commit diff
path: root/src/util/schemas/UserGuildSettingsSchema.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/schemas/UserGuildSettingsSchema.ts')
-rw-r--r--src/util/schemas/UserGuildSettingsSchema.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/schemas/UserGuildSettingsSchema.ts b/src/util/schemas/UserGuildSettingsSchema.ts
new file mode 100644
index 00000000..43028c58
--- /dev/null
+++ b/src/util/schemas/UserGuildSettingsSchema.ts
@@ -0,0 +1,9 @@
+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_id: string]: Partial<ChannelOverride>;
+	};
+}
\ No newline at end of file