summary refs log tree commit diff
path: root/util/src/entities/Config.ts
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
commit907abceff87914d6f9433d51cf522d39e84e2435 (patch)
tree6318849ad22130bdc90c5b969de5dd96786b24ef /util/src/entities/Config.ts
parentMerge pull request #301 from fosscord/feat--DiscordApiErrors (diff)
downloadserver-907abceff87914d6f9433d51cf522d39e84e2435.tar.xz
Added property maxWebhooks to ConfigValue and defined a default value in DefaultConfigOptions.
Diffstat (limited to '')
-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: {