summary refs log tree commit diff
path: root/util
diff options
context:
space:
mode:
authorsudenoh <tony@amatos.xyz>2021-09-01 15:43:37 +0200
committersudenoh <tony@amatos.xyz>2021-09-01 15:43:37 +0200
commit8a9385159ca48d11483e8f9ae299504e7b7921cb (patch)
tree84732874c2b0777cb4bb4546797327f77905dae9 /util
parentMerge pull request #301 from fosscord/feat--DiscordApiErrors (diff)
downloadserver-8a9385159ca48d11483e8f9ae299504e7b7921cb.tar.xz
Added property maxWebhooks to ConfigValue and defined a default value in DefaultConfigOptions.
Diffstat (limited to 'util')
-rw-r--r--util/src/entities/Config.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/src/entities/Config.ts b/util/src/entities/Config.ts
index 5eb55933..03ff823b 100644
--- a/util/src/entities/Config.ts
+++ b/util/src/entities/Config.ts
@@ -74,6 +74,7 @@ export interface ConfigValue {
 		channel: {
 			maxPins: number;
 			maxTopic: number;
+			maxWebhooks: number;
 		};
 		rate: {
 			ip: Omit<RateLimitOptions, "bot_count">;
@@ -183,6 +184,7 @@ export const DefaultConfigOptions: ConfigValue = {
 		channel: {
 			maxPins: 50,
 			maxTopic: 1024,
+			maxWebhooks: 10,
 		},
 		rate: {
 			ip: {