Ban API compat & Bulk Ban endpoint (#1120)
Co-authored-by: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
This commit is contained in:
@@ -73,7 +73,6 @@
|
||||
<a href="{actionUrl}" target="_blank" style="
|
||||
font-size: 15px;
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
@@ -99,4 +98,4 @@
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -65,7 +65,6 @@
|
||||
<a href="{actionUrl}" target="_blank" style="
|
||||
font-size: 15px;
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
@@ -87,4 +86,4 @@
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -74,7 +74,6 @@
|
||||
style="
|
||||
font-size: 15px;
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
|
||||
+268
-481
@@ -61,109 +61,208 @@
|
||||
"read_states"
|
||||
]
|
||||
},
|
||||
"DiagnosticsChannel.Response": {
|
||||
"ConnectedAccountCommonOAuthTokenResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"statusCode": {
|
||||
"type": "integer"
|
||||
},
|
||||
"statusText": {
|
||||
"access_token": {
|
||||
"type": "string"
|
||||
},
|
||||
"headers": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"patternProperties": {
|
||||
"^[0-9]+$": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
"token_type": {
|
||||
"type": "string"
|
||||
},
|
||||
"scope": {
|
||||
"type": "string"
|
||||
},
|
||||
"refresh_token": {
|
||||
"type": "string"
|
||||
},
|
||||
"expires_in": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"headers",
|
||||
"statusCode",
|
||||
"statusText"
|
||||
"access_token",
|
||||
"scope",
|
||||
"token_type"
|
||||
]
|
||||
},
|
||||
"Headers": {
|
||||
"ApplicationAuthorizeSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"append": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
"authorize": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"delete": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
"guild_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"get": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
"permissions": {
|
||||
"type": "string"
|
||||
},
|
||||
"has": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
"captcha_key": {
|
||||
"type": "string"
|
||||
},
|
||||
"set": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"getSetCookie": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"forEach": {
|
||||
"description": "Performs the specified action for each element in an array.",
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"keys": {
|
||||
"description": "Returns an array consisting of the keys of the object",
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"values": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"entries": {
|
||||
"description": "Returns an array consisting of the key value pairs of the object",
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"__@iterator": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
"code": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"__@iterator",
|
||||
"append",
|
||||
"delete",
|
||||
"entries",
|
||||
"forEach",
|
||||
"get",
|
||||
"getSetCookie",
|
||||
"has",
|
||||
"keys",
|
||||
"set",
|
||||
"values"
|
||||
"authorize",
|
||||
"guild_id",
|
||||
"permissions"
|
||||
]
|
||||
},
|
||||
"ResponseType": {
|
||||
"enum": [
|
||||
"basic",
|
||||
"cors",
|
||||
"default",
|
||||
"error",
|
||||
"opaque",
|
||||
"opaqueredirect"
|
||||
],
|
||||
"type": "string"
|
||||
"ApplicationCreateSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"team_id": {
|
||||
"type": [
|
||||
"string",
|
||||
"integer"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name"
|
||||
]
|
||||
},
|
||||
"ApplicationModifySchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"icon": {
|
||||
"type": "string"
|
||||
},
|
||||
"interactions_endpoint_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"max_participants": {
|
||||
"type": "integer",
|
||||
"nullable": true
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"privacy_policy_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"role_connections_verification_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"terms_of_service_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"bot_public": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"bot_require_code_grant": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"flags": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"BackupCodesChallengeSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"password": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"password"
|
||||
]
|
||||
},
|
||||
"BanCreateSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"delete_message_seconds": {
|
||||
"type": "string"
|
||||
},
|
||||
"delete_message_days": {
|
||||
"type": "string"
|
||||
},
|
||||
"reason": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"BanModeratorSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"guild_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"executor_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"reason": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"executor_id",
|
||||
"guild_id",
|
||||
"id",
|
||||
"user_id"
|
||||
]
|
||||
},
|
||||
"BanRegistrySchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"guild_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"executor_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"ip": {
|
||||
"type": "string"
|
||||
},
|
||||
"reason": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"executor_id",
|
||||
"guild_id",
|
||||
"id",
|
||||
"user_id"
|
||||
]
|
||||
},
|
||||
"BotModifySchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"avatar": {
|
||||
"type": "string"
|
||||
},
|
||||
"username": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ChannelPermissionOverwriteType": {
|
||||
"enum": [
|
||||
@@ -3543,14 +3642,14 @@
|
||||
"APIGuild": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"reload": {
|
||||
"description": "Reloads entity data from the database.",
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -4263,372 +4362,6 @@
|
||||
"webauthn"
|
||||
]
|
||||
},
|
||||
"_Response": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"headers": {
|
||||
"$ref": "#/components/schemas/Headers"
|
||||
},
|
||||
"ok": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"status": {
|
||||
"type": "integer"
|
||||
},
|
||||
"statusText": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"$ref": "#/components/schemas/ResponseType"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
},
|
||||
"redirected": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"body": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ReadableStream<any>"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"bodyUsed": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"arrayBuffer": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"blob": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"formData": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"json": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"text": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"clone": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"arrayBuffer",
|
||||
"blob",
|
||||
"body",
|
||||
"bodyUsed",
|
||||
"clone",
|
||||
"formData",
|
||||
"headers",
|
||||
"json",
|
||||
"ok",
|
||||
"redirected",
|
||||
"status",
|
||||
"statusText",
|
||||
"text",
|
||||
"type",
|
||||
"url"
|
||||
]
|
||||
},
|
||||
"global.Response": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"headers": {
|
||||
"$ref": "#/components/schemas/Headers"
|
||||
},
|
||||
"ok": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"status": {
|
||||
"type": "integer"
|
||||
},
|
||||
"statusText": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"$ref": "#/components/schemas/ResponseType"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
},
|
||||
"redirected": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"body": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ReadableStream<any>"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"bodyUsed": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"arrayBuffer": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"blob": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"formData": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"json": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"text": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"clone": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"arrayBuffer",
|
||||
"blob",
|
||||
"body",
|
||||
"bodyUsed",
|
||||
"clone",
|
||||
"formData",
|
||||
"headers",
|
||||
"json",
|
||||
"ok",
|
||||
"redirected",
|
||||
"status",
|
||||
"statusText",
|
||||
"text",
|
||||
"type",
|
||||
"url"
|
||||
]
|
||||
},
|
||||
"ConnectedAccountCommonOAuthTokenResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"access_token": {
|
||||
"type": "string"
|
||||
},
|
||||
"token_type": {
|
||||
"type": "string"
|
||||
},
|
||||
"scope": {
|
||||
"type": "string"
|
||||
},
|
||||
"refresh_token": {
|
||||
"type": "string"
|
||||
},
|
||||
"expires_in": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"access_token",
|
||||
"scope",
|
||||
"token_type"
|
||||
]
|
||||
},
|
||||
"ExpressResponse": {
|
||||
"type": "object"
|
||||
},
|
||||
"ApplicationAuthorizeSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"authorize": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"guild_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "string"
|
||||
},
|
||||
"captcha_key": {
|
||||
"type": "string"
|
||||
},
|
||||
"code": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"authorize",
|
||||
"guild_id",
|
||||
"permissions"
|
||||
]
|
||||
},
|
||||
"ApplicationCreateSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"team_id": {
|
||||
"type": [
|
||||
"string",
|
||||
"integer"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name"
|
||||
]
|
||||
},
|
||||
"ApplicationModifySchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"icon": {
|
||||
"type": "string"
|
||||
},
|
||||
"interactions_endpoint_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"max_participants": {
|
||||
"type": "integer",
|
||||
"nullable": true
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"privacy_policy_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"role_connections_verification_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"terms_of_service_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"bot_public": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"bot_require_code_grant": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"flags": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"BackupCodesChallengeSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"password": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"password"
|
||||
]
|
||||
},
|
||||
"BanCreateSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"delete_message_seconds": {
|
||||
"type": "string"
|
||||
},
|
||||
"delete_message_days": {
|
||||
"type": "string"
|
||||
},
|
||||
"reason": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"BanModeratorSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"guild_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"executor_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"reason": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"executor_id",
|
||||
"guild_id",
|
||||
"id",
|
||||
"user_id"
|
||||
]
|
||||
},
|
||||
"BanRegistrySchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"user_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"guild_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"executor_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"ip": {
|
||||
"type": "string"
|
||||
},
|
||||
"reason": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"executor_id",
|
||||
"guild_id",
|
||||
"id",
|
||||
"user_id"
|
||||
]
|
||||
},
|
||||
"BotModifySchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"avatar": {
|
||||
"type": "string"
|
||||
},
|
||||
"username": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ChannelPermissionOverwriteSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -5486,9 +5219,6 @@
|
||||
"MessageEditSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"embed": {
|
||||
"$ref": "#/components/schemas/Embed"
|
||||
},
|
||||
"file": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -5501,29 +5231,12 @@
|
||||
"filename"
|
||||
]
|
||||
},
|
||||
"embed": {
|
||||
"$ref": "#/components/schemas/Embed"
|
||||
},
|
||||
"flags": {
|
||||
"type": "integer"
|
||||
},
|
||||
"attachments": {
|
||||
"description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"filename": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"filename",
|
||||
"id"
|
||||
]
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -5597,6 +5310,26 @@
|
||||
"payload_json": {
|
||||
"type": "string"
|
||||
},
|
||||
"attachments": {
|
||||
"description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"filename": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"filename",
|
||||
"id"
|
||||
]
|
||||
}
|
||||
},
|
||||
"sticker_ids": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -13994,6 +13727,62 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/guilds/{guild_id}/bulk-ban/": {
|
||||
"post": {
|
||||
"x-permission-required": "BAN_MEMBERS",
|
||||
"security": [
|
||||
{
|
||||
"bearer": []
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Ban"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/APIErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/APIErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "guild_id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "guild_id"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"guilds"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/guilds/{guild_id}/bans/": {
|
||||
"get": {
|
||||
"x-permission-required": "BAN_MEMBERS",
|
||||
@@ -14040,7 +13829,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/guilds/{guild_id}/bans/{user}": {
|
||||
"/guilds/{guild_id}/bans/{user_id}": {
|
||||
"get": {
|
||||
"x-permission-required": "BAN_MEMBERS",
|
||||
"security": [
|
||||
@@ -14091,21 +13880,19 @@
|
||||
"description": "guild_id"
|
||||
},
|
||||
{
|
||||
"name": "user",
|
||||
"name": "user_id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "user"
|
||||
"description": "user_id"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"guilds"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/guilds/{guild_id}/bans/{user_id}": {
|
||||
},
|
||||
"put": {
|
||||
"x-permission-required": "BAN_MEMBERS",
|
||||
"security": [
|
||||
|
||||
+4618
-63543
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user