From 1f132453655c48ebbfe58b77c6e0ba1b2f3e987d Mon Sep 17 00:00:00 2001 From: "Nelly (automation bot)" <> Date: Tue, 27 Oct 2026 18:53:25 +0000 Subject: [PATCH] Automated spec update (289660) --- specs/openapi.json | 321 ++++++++++++++++++++++++++++++++++++- specs/openapi_preview.json | 321 ++++++++++++++++++++++++++++++++++++- 2 files changed, 638 insertions(+), 4 deletions(-) diff --git a/specs/openapi.json b/specs/openapi.json index d37f2bf..b1ebae2 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -3852,6 +3852,152 @@ ] } }, + "/channels/{channel_id}/permissions/member/{user_id}": { + "parameters": [ + { + "name": "channel_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "user_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "description": "Returns the fully cascaded permissions for a member in this channel, applying their roles and the channel's permission overwrites.", + "operationId": "get_channel_member_permissions", + "parameters": [ + { + "name": "implicit", + "in": "query", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "200 response for get_channel_member_permissions", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PermissionsResponse" + } + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, + "/channels/{channel_id}/permissions/role/{role_id}": { + "parameters": [ + { + "name": "channel_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "role_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "description": "Returns the permissions a role grants in this channel, applying the channel's permission overwrites on top of the role's guild-level permissions.", + "operationId": "get_channel_role_permissions", + "parameters": [ + { + "name": "implicit", + "in": "query", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "200 response for get_channel_role_permissions", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PermissionsResponse" + } + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/channels/{channel_id}/permissions/{overwrite_id}": { "parameters": [ { @@ -8607,6 +8753,134 @@ ] } }, + "/guilds/{guild_id}/permissions/member/{user_id}": { + "parameters": [ + { + "name": "guild_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "user_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "description": "Returns the fully cascaded guild-level permissions for a member, applying all of their roles including @everyone's", + "operationId": "get_guild_member_permissions", + "responses": { + "200": { + "description": "200 response for get_guild_member_permissions", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PermissionsResponse" + } + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, + "/guilds/{guild_id}/permissions/role/{role_id}": { + "parameters": [ + { + "name": "guild_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "role_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "description": "Returns the permissions a role grants at the guild level, combining the role's own permissions with @everyone's.", + "operationId": "get_guild_role_permissions", + "responses": { + "200": { + "description": "200 response for get_guild_role_permissions", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PermissionsResponse" + } + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/guilds/{guild_id}/preview": { "parameters": [ { @@ -23780,6 +24054,18 @@ "spoiler" ] }, + "ContentScanMetadataResponse": { + "type": "object", + "properties": { + "flags": { + "type": "integer", + "format": "int32" + } + }, + "required": [ + "flags" + ] + }, "CreateEntitlementRequestData": { "type": "object", "properties": { @@ -35190,6 +35476,18 @@ "account" ] }, + "PermissionsResponse": { + "type": "object", + "properties": { + "permissions": { + "type": "string", + "description": "The computed permissions, as a stringified bitfield" + } + }, + "required": [ + "permissions" + ] + }, "PinnedMessageResponse": { "type": "object", "properties": { @@ -40547,20 +40845,39 @@ ], "format": "int32" }, + "placeholder": { + "type": [ + "string", + "null" + ] + }, + "placeholder_version": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "content_scan_metadata": { + "$ref": "#/components/schemas/ContentScanMetadataResponse" + }, "content_type": { "type": [ "string", "null" ] }, + "flags": { + "type": "integer", + "format": "int32" + }, "attachment_id": { "$ref": "#/components/schemas/SnowflakeType" } }, "required": [ "id", - "url", - "proxy_url" + "url" ] }, "UpdateApplicationUserRoleConnectionRequest": { diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index c9c68a8..278ae20 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -3852,6 +3852,152 @@ ] } }, + "/channels/{channel_id}/permissions/member/{user_id}": { + "parameters": [ + { + "name": "channel_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "user_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "description": "Returns the fully cascaded permissions for a member in this channel, applying their roles and the channel's permission overwrites.", + "operationId": "get_channel_member_permissions", + "parameters": [ + { + "name": "implicit", + "in": "query", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "200 response for get_channel_member_permissions", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PermissionsResponse" + } + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, + "/channels/{channel_id}/permissions/role/{role_id}": { + "parameters": [ + { + "name": "channel_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "role_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "description": "Returns the permissions a role grants in this channel, applying the channel's permission overwrites on top of the role's guild-level permissions.", + "operationId": "get_channel_role_permissions", + "parameters": [ + { + "name": "implicit", + "in": "query", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "200 response for get_channel_role_permissions", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PermissionsResponse" + } + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/channels/{channel_id}/permissions/{overwrite_id}": { "parameters": [ { @@ -8619,6 +8765,134 @@ ] } }, + "/guilds/{guild_id}/permissions/member/{user_id}": { + "parameters": [ + { + "name": "guild_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "user_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "description": "Returns the fully cascaded guild-level permissions for a member, applying all of their roles including @everyone's", + "operationId": "get_guild_member_permissions", + "responses": { + "200": { + "description": "200 response for get_guild_member_permissions", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PermissionsResponse" + } + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, + "/guilds/{guild_id}/permissions/role/{role_id}": { + "parameters": [ + { + "name": "guild_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + }, + { + "name": "role_id", + "in": "path", + "schema": { + "$ref": "#/components/schemas/SnowflakeType" + }, + "required": true + } + ], + "get": { + "description": "Returns the permissions a role grants at the guild level, combining the role's own permissions with @everyone's.", + "operationId": "get_guild_role_permissions", + "responses": { + "200": { + "description": "200 response for get_guild_role_permissions", + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/X-RateLimit-Limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/X-RateLimit-Remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/X-RateLimit-Reset" + }, + "X-RateLimit-Reset-After": { + "$ref": "#/components/headers/X-RateLimit-Reset-After" + }, + "X-RateLimit-Bucket": { + "$ref": "#/components/headers/X-RateLimit-Bucket" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PermissionsResponse" + } + } + } + }, + "429": { + "$ref": "#/components/responses/ClientRatelimitedResponse" + }, + "4XX": { + "$ref": "#/components/responses/ClientErrorResponse" + } + }, + "security": [ + { + "BotToken": [] + } + ] + } + }, "/guilds/{guild_id}/preview": { "parameters": [ { @@ -23797,6 +24071,18 @@ "spoiler" ] }, + "ContentScanMetadataResponse": { + "type": "object", + "properties": { + "flags": { + "type": "integer", + "format": "int32" + } + }, + "required": [ + "flags" + ] + }, "CreateEntitlementRequestData": { "type": "object", "properties": { @@ -35215,6 +35501,18 @@ "account" ] }, + "PermissionsResponse": { + "type": "object", + "properties": { + "permissions": { + "type": "string", + "description": "The computed permissions, as a stringified bitfield" + } + }, + "required": [ + "permissions" + ] + }, "PinnedMessageResponse": { "type": "object", "properties": { @@ -40572,20 +40870,39 @@ ], "format": "int32" }, + "placeholder": { + "type": [ + "string", + "null" + ] + }, + "placeholder_version": { + "type": [ + "integer", + "null" + ], + "format": "int32" + }, + "content_scan_metadata": { + "$ref": "#/components/schemas/ContentScanMetadataResponse" + }, "content_type": { "type": [ "string", "null" ] }, + "flags": { + "type": "integer", + "format": "int32" + }, "attachment_id": { "$ref": "#/components/schemas/SnowflakeType" } }, "required": [ "id", - "url", - "proxy_url" + "url" ] }, "UpdateApplicationUserRoleConnectionRequest": {