diff --git a/src/utils/database/json.ts b/src/utils/database/json.ts index 2716357..5535dd3 100644 --- a/src/utils/database/json.ts +++ b/src/utils/database/json.ts @@ -38,6 +38,9 @@ export class JSONDatabase { }; public async getChannel(name: string) { + if (this.data[name] == null) { + this.resetChannel(name); + }; return this.data[name]; }; }; \ No newline at end of file