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 {
|
interface database {
|
||||||
webhook: {
|
[index: string]: {
|
||||||
id: string;
|
webhook: {
|
||||||
token: string;
|
id: string;
|
||||||
};
|
token: string;
|
||||||
bracket: {
|
};
|
||||||
msg: string;
|
bracket: {
|
||||||
quotes: string[];
|
msg: string;
|
||||||
votes: { [index: number]: number };
|
quotes: string[];
|
||||||
users: { [index: string]: number };
|
votes: { [index: number]: number };
|
||||||
};
|
users: { [index: string]: number };
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue