Restructure database to have per-guild data
This commit is contained in:
parent
0cc34a1517
commit
be470cda9e
1 changed files with 12 additions and 10 deletions
22
src/types/database.d.ts
vendored
22
src/types/database.d.ts
vendored
|
|
@ -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 };
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue