Fixed a lot of commands, 0 typing errors on those changed
diff --git a/src/utils/database.ts b/src/utils/database.ts
index 2ae6af9..2624fc9 100644
--- a/src/utils/database.ts
+++ b/src/utils/database.ts
@@ -1,5 +1,6 @@
import type Discord from "discord.js";
import { Collection, MongoClient } from "mongodb";
+// @ts-expect-error
import config from "../config/main.json" assert { type: "json" };
const mongoClient = new MongoClient(config.mongoUrl);
@@ -16,6 +17,7 @@
}
async setup(): Promise<Guilds> {
+ // @ts-expect-error
this.defaultData = (await import("../config/default.json", { assert: { type: "json" } }))
.default as unknown as GuildConfig;
return this;
@@ -184,9 +186,7 @@
export interface GuildConfig {
id: string;
version: number;
- singleEventNotifications: {
- statsChannelDeleted: boolean;
- };
+ singleEventNotifications: Record<string, boolean>;
filters: {
images: {
NSFW: boolean;