From 57b0fc0b7371f61b5280a07e83069c45445023f7 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Mon, 20 Feb 2023 19:59:11 -0700 Subject: [PATCH] Add the resetChannel DB method --- src/utils/database/json.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/database/json.ts b/src/utils/database/json.ts index 658ed96..7994b1d 100644 --- a/src/utils/database/json.ts +++ b/src/utils/database/json.ts @@ -32,6 +32,10 @@ export class JSONDatabase { }; }; + public async resetChannel(name: string) { + await this.createChannel(name); + }; + public async getChannel(name: string) { return this.data[name]; };