mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-07 08:25:40 +00:00
@@ -19,10 +19,14 @@ export interface RateLimitOptions {
|
||||
export interface Region {
|
||||
id: string;
|
||||
name: string;
|
||||
endpoint: string;
|
||||
location?: {
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
};
|
||||
vip: boolean;
|
||||
custom: boolean;
|
||||
deprecated: boolean;
|
||||
optimal: boolean;
|
||||
}
|
||||
|
||||
export interface KafkaBroker {
|
||||
@@ -128,6 +132,7 @@ export interface ConfigValue {
|
||||
};
|
||||
regions: {
|
||||
default: string;
|
||||
useDefaultAsOptimal: boolean;
|
||||
available: Region[];
|
||||
};
|
||||
rabbitmq: {
|
||||
@@ -263,7 +268,8 @@ export const DefaultConfigOptions: ConfigValue = {
|
||||
},
|
||||
regions: {
|
||||
default: "fosscord",
|
||||
available: [{ id: "fosscord", name: "Fosscord", vip: false, custom: false, deprecated: false, optimal: false }],
|
||||
useDefaultAsOptimal: true,
|
||||
available: [{ id: "fosscord", name: "Fosscord", endpoint: "127.0.0.1", vip: false, custom: false, deprecated: false }],
|
||||
},
|
||||
rabbitmq: {
|
||||
host: null,
|
||||
|
||||
@@ -41,7 +41,7 @@ export class Guild extends BaseClass {
|
||||
explicit_content_filter?: number;
|
||||
|
||||
@Column({ type: "simple-array" })
|
||||
features: string[];
|
||||
features: string[]; //TODO use enum
|
||||
|
||||
@Column({ nullable: true })
|
||||
icon?: string;
|
||||
|
||||
Reference in New Issue
Block a user