summary refs log tree commit diff
path: root/util/src/entities
diff options
context:
space:
mode:
authoruurgothat <cckhmck@gmail.com>2021-10-18 04:36:49 +0300
committeruurgothat <cckhmck@gmail.com>2021-10-18 04:36:49 +0300
commit89c3ec1b4aff4d6b057ec0897c4f066563301a72 (patch)
treea7f4aec66f72f629e3fb1b684c261365af4f9e41 /util/src/entities
parentremove unneeded import (diff)
downloadserver-89c3ec1b4aff4d6b057ec0897c4f066563301a72.tar.xz
external templates + fosscord draft and more configs
Diffstat (limited to 'util/src/entities')
-rw-r--r--util/src/entities/Config.ts12
1 files changed, 10 insertions, 2 deletions
diff --git a/util/src/entities/Config.ts b/util/src/entities/Config.ts
index 48a8b34e..1d2d496a 100644
--- a/util/src/entities/Config.ts
+++ b/util/src/entities/Config.ts
@@ -161,7 +161,11 @@ export interface ConfigValue {
 		brokers: KafkaBroker[] | null;
 	};
 	templates: {
-		allowDiscordTemplates: Boolean
+		enabled: Boolean;
+		allowTemplateCreation: Boolean;
+		allowDiscordTemplates: Boolean;
+		allowOtherInstancesTemplates: Boolean;
+		allowExternalRaws: Boolean
 	}
 }
 
@@ -325,6 +329,10 @@ export const DefaultConfigOptions: ConfigValue = {
 		brokers: null,
 	},
 	templates: {
-		allowDiscordTemplates: true
+		enabled: true,
+		allowTemplateCreation: true,
+		allowDiscordTemplates: true,
+		allowOtherInstancesTemplates: false, //Incomple
+		allowExternalRaws: false
 	}
 };