From be470cda9e500a66cb7976f97c3739add4d9f0fd Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Thu, 22 Jul 2021 12:56:24 -0600 Subject: [PATCH] Restructure database to have per-guild data --- src/types/database.d.ts | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/types/database.d.ts b/src/types/database.d.ts index 3dd4f8f..661f4c1 100644 --- a/src/types/database.d.ts +++ b/src/types/database.d.ts @@ -1,12 +1,14 @@ interface database { - webhook: { - id: string; - token: string; - }; - bracket: { - msg: string; - quotes: string[]; - votes: { [index: number]: number }; - users: { [index: string]: number }; - }; + [index: string]: { + webhook: { + id: string; + token: string; + }; + bracket: { + msg: string; + quotes: string[]; + votes: { [index: number]: number }; + users: { [index: string]: number }; + }; + } } \ No newline at end of file