main - remote-2023-08-03T13:45:55 now-2023-08-03T13:46:19

This commit is contained in:
Adversary 2023-08-03 13:46:19 +00:00
parent 374f00c3dd
commit e8347ee2fb
2 changed files with 84 additions and 6 deletions

View file

@ -417,9 +417,31 @@
}, },
"patch": { "patch": {
"operationId": "update_my_user", "operationId": "update_my_user",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/BotAccountPatchRequestPartial"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": { "responses": {
"200": { "200": {
"description": "200 response for update_my_user" "description": "200 response for update_my_user",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserPIIResponse"
}
}
}
}, },
"4XX": { "4XX": {
"$ref": "#/components/responses/ClientErrorResponse" "$ref": "#/components/responses/ClientErrorResponse"
@ -9125,7 +9147,7 @@
] ]
}, },
"minItems": 1, "minItems": 1,
"maxItems": 1521 "maxItems": 5
} }
}, },
"required": [ "required": [
@ -12989,6 +13011,23 @@
"metadata" "metadata"
] ]
}, },
"BotAccountPatchRequestPartial": {
"type": "object",
"properties": {
"username": {
"type": "string",
"minLength": 2,
"maxLength": 32
},
"avatar": {
"type": [
"string",
"null"
],
"contentEncoding": "base64"
}
}
},
"Button": { "Button": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -14934,7 +14973,7 @@
}, },
"name": { "name": {
"type": "string", "type": "string",
"maxLength": 152133 "maxLength": 32
}, },
"animated": { "animated": {
"type": [ "type": [

View file

@ -417,9 +417,31 @@
}, },
"patch": { "patch": {
"operationId": "update_my_user", "operationId": "update_my_user",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/BotAccountPatchRequestPartial"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": { "responses": {
"200": { "200": {
"description": "200 response for update_my_user" "description": "200 response for update_my_user",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserPIIResponse"
}
}
}
}, },
"4XX": { "4XX": {
"$ref": "#/components/responses/ClientErrorResponse" "$ref": "#/components/responses/ClientErrorResponse"
@ -9125,7 +9147,7 @@
] ]
}, },
"minItems": 1, "minItems": 1,
"maxItems": 1521 "maxItems": 5
} }
}, },
"required": [ "required": [
@ -12989,6 +13011,23 @@
"metadata" "metadata"
] ]
}, },
"BotAccountPatchRequestPartial": {
"type": "object",
"properties": {
"username": {
"type": "string",
"minLength": 2,
"maxLength": 32
},
"avatar": {
"type": [
"string",
"null"
],
"contentEncoding": "base64"
}
}
},
"Button": { "Button": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -14938,7 +14977,7 @@
}, },
"name": { "name": {
"type": "string", "type": "string",
"maxLength": 152133 "maxLength": 32
}, },
"animated": { "animated": {
"type": [ "type": [