diff --git a/specs/openapi.json b/specs/openapi.json index ec48f7a..ee9d77d 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -5348,59 +5348,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "nick": { - "type": [ - "string", - "null" - ], - "maxLength": 32 - }, - "roles": { - "type": [ - "array", - "null" - ], - "items": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SnowflakeType" - } - ] - }, - "maxItems": 1521, - "uniqueItems": true - }, - "mute": { - "type": [ - "boolean", - "null" - ] - }, - "deaf": { - "type": [ - "boolean", - "null" - ] - }, - "access_token": { - "type": "string", - "maxLength": 152133 - }, - "flags": { - "type": [ - "integer", - "null" - ] - } - }, - "required": [ - "access_token" - ] + "$ref": "#/components/schemas/BotAddGuildMemberRequest" } } }, @@ -15356,6 +15304,54 @@ "username" ] }, + "BotAddGuildMemberRequest": { + "type": "object", + "properties": { + "nick": { + "type": [ + "string", + "null" + ], + "maxLength": 32 + }, + "roles": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "maxItems": 250, + "uniqueItems": true + }, + "mute": { + "type": [ + "boolean", + "null" + ] + }, + "deaf": { + "type": [ + "boolean", + "null" + ] + }, + "access_token": { + "type": "string", + "maxLength": 10240 + }, + "flags": { + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "access_token" + ] + }, "BulkBanUsersResponse": { "type": "object", "properties": { diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index a8bc86e..4f951f6 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -5348,59 +5348,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "nick": { - "type": [ - "string", - "null" - ], - "maxLength": 32 - }, - "roles": { - "type": [ - "array", - "null" - ], - "items": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/SnowflakeType" - } - ] - }, - "maxItems": 1521, - "uniqueItems": true - }, - "mute": { - "type": [ - "boolean", - "null" - ] - }, - "deaf": { - "type": [ - "boolean", - "null" - ] - }, - "access_token": { - "type": "string", - "maxLength": 152133 - }, - "flags": { - "type": [ - "integer", - "null" - ] - } - }, - "required": [ - "access_token" - ] + "$ref": "#/components/schemas/BotAddGuildMemberRequest" } } }, @@ -15356,6 +15304,54 @@ "username" ] }, + "BotAddGuildMemberRequest": { + "type": "object", + "properties": { + "nick": { + "type": [ + "string", + "null" + ], + "maxLength": 32 + }, + "roles": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "maxItems": 250, + "uniqueItems": true + }, + "mute": { + "type": [ + "boolean", + "null" + ] + }, + "deaf": { + "type": [ + "boolean", + "null" + ] + }, + "access_token": { + "type": "string", + "maxLength": 10240 + }, + "flags": { + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "access_token" + ] + }, "BulkBanUsersResponse": { "type": "object", "properties": {