From 9e6a465f6687f6069db5effd00873e1bdaf35327 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Tue, 18 Apr 2023 21:22:12 +1000 Subject: update schemas/openapi --- assets/openapi.json | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 3 deletions(-) (limited to 'assets/openapi.json') diff --git a/assets/openapi.json b/assets/openapi.json index 4e4d50a8..eff3df07 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -2732,8 +2732,7 @@ }, "required": [ "name", - "type", - "verified" + "type" ] }, "UserRelationsResponse": { @@ -2979,6 +2978,9 @@ }, "show_activity": { "type": "boolean" + }, + "metadata_visibility": { + "type": "boolean" } } } @@ -4951,7 +4953,8 @@ ], "tags": [ "guilds" - ] + ], + "x-permission-required": "MANAGE_ROLES" } }, "/guilds/{guild_id}/roles/{role_id}/": { @@ -7987,6 +7990,52 @@ "connections" ] } + }, + "/channels/{channel_id}/messages/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "parameters": [ + { + "name": "channel_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "channel_id" + } + ], + "tags": [ + "channels" + ] + }, + "post": { + "x-right-required": "SEND_MESSAGES", + "x-permission-required": "SEND_MESSAGES", + "security": [ + { + "bearer": [] + } + ], + "parameters": [ + { + "name": "channel_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "channel_id" + } + ], + "tags": [ + "channels" + ] + } } } } \ No newline at end of file -- cgit 1.5.1