From 5a20924477eae54c7353c0aecf7a56f4e052e3b5 Mon Sep 17 00:00:00 2001 From: aintDatCap Date: Wed, 24 Jul 2024 19:06:12 +0200 Subject: [PATCH 1/3] Implemented proposal described in the issue #1122 --- src/api/routes/guilds/#guild_id/bulk-ban.ts | 5 ++++- .../types/subconfigurations/limits/GlobalRateLimits.ts | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/api/routes/guilds/#guild_id/bulk-ban.ts b/src/api/routes/guilds/#guild_id/bulk-ban.ts index f544103a5..10505282a 100644 --- a/src/api/routes/guilds/#guild_id/bulk-ban.ts +++ b/src/api/routes/guilds/#guild_id/bulk-ban.ts @@ -27,6 +27,7 @@ import { } from "@spacebar/util"; import { Request, Response, Router } from "express"; import { HTTPError } from "lambert-server"; +import { Config } from "@spacebar/util"; const router: Router = Router(); @@ -52,7 +53,9 @@ router.post( const userIds: Array = req.body.user_ids; if (!userIds) throw new HTTPError("The user_ids array is missing", 400); - if (userIds.length > 200) + + const bulkBanLimit = Config.get().limits.absoluteRate.bulkBan; + if (bulkBanLimit.enabled && userIds.length > bulkBanLimit.limit) throw new HTTPError( "The user_ids array must be between 1 and 200 in length", 400, diff --git a/src/util/config/types/subconfigurations/limits/GlobalRateLimits.ts b/src/util/config/types/subconfigurations/limits/GlobalRateLimits.ts index 835d71933..5a8a0d44b 100644 --- a/src/util/config/types/subconfigurations/limits/GlobalRateLimits.ts +++ b/src/util/config/types/subconfigurations/limits/GlobalRateLimits.ts @@ -27,6 +27,11 @@ export class GlobalRateLimits { window: 60 * 1000, enabled: true, }; + bulkBan: GlobalRateLimit = { + limit: 200, + window: 0, + enabled: true, + }; } export class GlobalRateLimit { From e4a14d659a8c27d222d06711e1ba23b43d3ad0e2 Mon Sep 17 00:00:00 2001 From: aintDatCap Date: Wed, 24 Jul 2024 19:22:40 +0200 Subject: [PATCH 2/3] Refactored max limit for bulk-bans from AbsoluteRateLimits to GuildLimits as suggested by @devtomatocake --- assets/schemas.json | 655 ++++++++++++++++++ src/api/routes/guilds/#guild_id/bulk-ban.ts | 3 +- .../limits/GlobalRateLimits.ts | 5 - .../subconfigurations/limits/GuildLimits.ts | 1 + 4 files changed, 657 insertions(+), 7 deletions(-) diff --git a/assets/schemas.json b/assets/schemas.json index 00f86b360..2deec5507 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -4424,6 +4424,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -4431,6 +4435,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -8842,6 +8847,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -8849,6 +8858,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -13260,6 +13270,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -13267,6 +13281,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -17673,6 +17688,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -17680,6 +17699,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -22122,6 +22142,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -22129,6 +22153,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -26540,6 +26565,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -26547,6 +26576,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -30949,6 +30979,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -30956,6 +30990,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -35361,6 +35396,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -35368,6 +35407,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -39782,6 +39822,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -39789,6 +39833,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -44191,6 +44236,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -44198,6 +44247,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -48600,6 +48650,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -48607,6 +48661,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -53028,6 +53083,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -53035,6 +53094,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -57440,6 +57500,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -57447,6 +57511,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -61912,6 +61977,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -61919,6 +61988,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -66343,6 +66413,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -66350,6 +66424,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -70915,6 +70990,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -70922,6 +71001,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -75345,6 +75425,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -75352,6 +75436,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -79785,6 +79870,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -79792,6 +79881,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -84207,6 +84297,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -84214,6 +84308,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -88635,6 +88730,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -88642,6 +88741,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -93053,6 +93153,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -93060,6 +93164,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -97459,6 +97564,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -97466,6 +97575,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -102002,6 +102112,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -102009,6 +102123,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -106399,6 +106514,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -106406,6 +106525,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -110939,6 +111059,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -110946,6 +111070,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -115348,6 +115473,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -115355,6 +115484,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -119765,6 +119895,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -119772,6 +119906,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -124175,6 +124310,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -124182,6 +124321,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -128585,6 +128725,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -128592,6 +128736,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -133030,6 +133175,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -133037,6 +133186,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -137440,6 +137590,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -137447,6 +137601,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -141849,6 +142004,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -141856,6 +142015,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -146273,6 +146433,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -146280,6 +146444,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -150686,6 +150851,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -150693,6 +150862,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -155173,6 +155343,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -155180,6 +155354,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -159582,6 +159757,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -159589,6 +159768,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -163991,6 +164171,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -163998,6 +164182,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -168397,6 +168582,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -168404,6 +168593,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -172809,6 +172999,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -172816,6 +173010,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -177231,6 +177426,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -177238,6 +177437,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -181637,6 +181837,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -181644,6 +181848,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -186092,6 +186297,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -186099,6 +186308,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -190533,6 +190743,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -190540,6 +190754,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -194939,6 +195154,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -194946,6 +195165,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -199370,6 +199590,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -199377,6 +199601,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -203896,6 +204121,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -203903,6 +204132,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -208301,6 +208531,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -208308,6 +208542,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -212745,6 +212980,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -212752,6 +212991,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -217177,6 +217417,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -217184,6 +217428,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -221661,6 +221906,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -221668,6 +221917,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -226067,6 +226317,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -226074,6 +226328,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -230481,6 +230736,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -230488,6 +230747,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -234885,6 +235145,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -234892,6 +235156,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -239295,6 +239560,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -239302,6 +239571,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -243705,6 +243975,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -243712,6 +243986,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -248115,6 +248390,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -248122,6 +248401,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -252557,6 +252837,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -252564,6 +252848,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -256971,6 +257256,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -256978,6 +257267,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -261375,6 +261665,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -261382,6 +261676,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -265785,6 +266080,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -265792,6 +266091,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -270206,6 +270506,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -270213,6 +270517,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -274641,6 +274946,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -274648,6 +274957,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -279047,6 +279357,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -279054,6 +279368,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -283456,6 +283771,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -283463,6 +283782,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -287894,6 +288214,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -287901,6 +288225,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -292300,6 +292625,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -292307,6 +292636,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -296785,6 +297115,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -296792,6 +297126,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -301198,6 +301533,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -301205,6 +301544,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -305604,6 +305944,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -305611,6 +305955,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -310010,6 +310355,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -310017,6 +310366,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -314423,6 +314773,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -314430,6 +314784,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -318833,6 +319188,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -318840,6 +319199,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -323239,6 +323599,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -323246,6 +323610,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -327720,6 +328085,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -327727,6 +328096,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -332137,6 +332507,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -332144,6 +332518,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -336555,6 +336930,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -336562,6 +336941,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -341023,6 +341403,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -341030,6 +341414,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -345450,6 +345835,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -345457,6 +345846,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -349883,6 +350273,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -349890,6 +350284,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -354310,6 +354705,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -354317,6 +354716,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -358716,6 +359116,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -358723,6 +359127,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -363150,6 +363555,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -363157,6 +363566,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -367596,6 +368006,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -367603,6 +368017,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -371996,6 +372411,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -372003,6 +372422,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -376406,6 +376826,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -376413,6 +376837,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -380812,6 +381237,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -380819,6 +381248,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -385225,6 +385655,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -385232,6 +385666,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -389842,6 +390277,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -389849,6 +390288,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -394239,6 +394679,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -394246,6 +394690,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -398736,6 +399181,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -398743,6 +399192,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -403136,6 +403586,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -403143,6 +403597,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -407536,6 +407991,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -407543,6 +408002,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -411936,6 +412396,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -411943,6 +412407,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -416436,6 +416901,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -416443,6 +416912,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -420834,6 +421304,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -420841,6 +421315,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -425232,6 +425707,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -425239,6 +425718,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -429630,6 +430110,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -429637,6 +430121,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -434030,6 +434515,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -434037,6 +434526,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -438430,6 +438920,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -438437,6 +438931,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -442830,6 +443325,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -442837,6 +443336,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -447230,6 +447730,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -447237,6 +447741,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -451630,6 +452135,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -451637,6 +452146,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -456094,6 +456604,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -456101,6 +456615,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -460494,6 +461009,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -460501,6 +461020,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -464894,6 +465414,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -464901,6 +465425,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -469294,6 +469819,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -469301,6 +469830,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -473741,6 +474271,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -473748,6 +474282,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -478377,6 +478912,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -478384,6 +478923,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -482777,6 +483317,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -482784,6 +483328,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -487177,6 +487722,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -487184,6 +487733,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -491577,6 +492127,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -491584,6 +492138,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -495977,6 +496532,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -495984,6 +496543,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -500403,6 +500963,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -500410,6 +500974,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -504803,6 +505368,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -504810,6 +505379,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -509201,6 +509771,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -509208,6 +509782,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -513622,6 +514197,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -513629,6 +514208,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -518036,6 +518616,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -518043,6 +518627,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -522569,6 +523154,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -522576,6 +523165,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -526993,6 +527583,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -527000,6 +527594,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -531411,6 +532006,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -531418,6 +532017,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -535821,6 +536421,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -535828,6 +536432,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -540231,6 +540836,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -540238,6 +540847,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -544628,6 +545238,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -544635,6 +545249,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -549040,6 +549655,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -549047,6 +549666,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -553449,6 +554069,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -553456,6 +554080,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -557873,6 +558498,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -557880,6 +558509,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -562301,6 +562931,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -562308,6 +562942,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -566708,6 +567343,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -566715,6 +567354,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -571114,6 +571754,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -571121,6 +571765,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -575520,6 +576165,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -575527,6 +576176,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -579932,6 +580582,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -579939,6 +580593,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", diff --git a/src/api/routes/guilds/#guild_id/bulk-ban.ts b/src/api/routes/guilds/#guild_id/bulk-ban.ts index 10505282a..e5f7a0d8e 100644 --- a/src/api/routes/guilds/#guild_id/bulk-ban.ts +++ b/src/api/routes/guilds/#guild_id/bulk-ban.ts @@ -54,8 +54,7 @@ router.post( const userIds: Array = req.body.user_ids; if (!userIds) throw new HTTPError("The user_ids array is missing", 400); - const bulkBanLimit = Config.get().limits.absoluteRate.bulkBan; - if (bulkBanLimit.enabled && userIds.length > bulkBanLimit.limit) + if (userIds.length > Config.get().limits.guild.maxBulkBanUsers) throw new HTTPError( "The user_ids array must be between 1 and 200 in length", 400, diff --git a/src/util/config/types/subconfigurations/limits/GlobalRateLimits.ts b/src/util/config/types/subconfigurations/limits/GlobalRateLimits.ts index 5a8a0d44b..835d71933 100644 --- a/src/util/config/types/subconfigurations/limits/GlobalRateLimits.ts +++ b/src/util/config/types/subconfigurations/limits/GlobalRateLimits.ts @@ -27,11 +27,6 @@ export class GlobalRateLimits { window: 60 * 1000, enabled: true, }; - bulkBan: GlobalRateLimit = { - limit: 200, - window: 0, - enabled: true, - }; } export class GlobalRateLimit { diff --git a/src/util/config/types/subconfigurations/limits/GuildLimits.ts b/src/util/config/types/subconfigurations/limits/GuildLimits.ts index b64d94857..e77cf4242 100644 --- a/src/util/config/types/subconfigurations/limits/GuildLimits.ts +++ b/src/util/config/types/subconfigurations/limits/GuildLimits.ts @@ -21,5 +21,6 @@ export class GuildLimits { maxEmojis: number = 2000; maxMembers: number = 25000000; maxChannels: number = 65535; + maxBulkBanUsers: number = 200; maxChannelsInCategory: number = 65535; } From 4e0ac5274c041ac63ab3c38d71fb3f726fd27647 Mon Sep 17 00:00:00 2001 From: aintDatCap Date: Wed, 24 Jul 2024 20:07:08 +0200 Subject: [PATCH 3/3] Updated the openapi schema --- assets/openapi.json | 73 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 71 insertions(+), 2 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index 2788cdb08..6e719c2d9 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -1633,6 +1633,12 @@ "$ref": "#/components/schemas/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -3658,6 +3664,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "required": [ @@ -4104,6 +4116,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "required": [ @@ -4204,12 +4229,17 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 } }, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -4427,6 +4457,28 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -5307,7 +5359,6 @@ }, "additionalProperties": false, "required": [ - "channel_id", "message_id" ] }, @@ -5465,7 +5516,6 @@ }, "additionalProperties": false, "required": [ - "channel_id", "message_id" ] }, @@ -7216,6 +7266,12 @@ "pronouns": { "type": "string" }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "mfa_enabled": { "type": "boolean" }, @@ -7333,6 +7389,12 @@ "pronouns": { "type": "string" }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "mfa_enabled": { "type": "boolean" }, @@ -8014,9 +8076,16 @@ "bio", "guild_id" ] + }, + "badges": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Badge" + } } }, "required": [ + "badges", "connected_accounts", "mutual_guilds", "premium_type",