diff options
author | Paul Munteanu <luth@luthcode.net> | 2021-07-26 02:14:37 +0300 |
---|---|---|
committer | Paul Munteanu <luth@luthcode.net> | 2021-07-26 02:14:37 +0300 |
commit | 0ce5c918f530c67bdbddb6c9e33f1aed7e71802a (patch) | |
tree | c33cd08f3cc482da1d9a40bcce8a0d363e3dcd7b /src/util | |
parent | 1.3.34 (diff) | |
download | server-0ce5c918f530c67bdbddb6c9e33f1aed7e71802a.tar.xz |
Add regions to Config
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Config.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/util/Config.ts b/src/util/Config.ts index dfa942e7..6af351b3 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts @@ -24,6 +24,15 @@ export interface RateLimitOptions { timespan: number; } +export interface Region { + id: string, + name: string, + vip: boolean, + custom: boolean, + deprecated: boolean, + optimal: boolean, +} + export interface DefaultOptions { gateway: { endpoint: string | null; @@ -116,6 +125,10 @@ export interface DefaultOptions { minSymbols: number; }; }; + regions: { + default: string; + available: Region[]; + } } export const DefaultOptions: DefaultOptions = { @@ -207,6 +220,12 @@ export const DefaultOptions: DefaultOptions = { minSymbols: 0, }, }, + regions: { + default: "fosscord", + available: [ + { id: "fosscord", name: "Fosscord", vip: false, custom: false, deprecated: false, optimal: false }, + ] + }, }; export const ConfigSchema = new Schema({}, { strict: false }); |