diff --git a/specs/openapi.json b/specs/openapi.json index c87af8c..f3e6fc1 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -3775,6 +3775,9 @@ { "$ref": "#/components/schemas/CreateMessageInteractionCallbackRequest" }, + { + "$ref": "#/components/schemas/LaunchActivityInteractionCallbackRequest" + }, { "$ref": "#/components/schemas/ModalInteractionCallbackRequest" }, @@ -3797,6 +3800,9 @@ { "$ref": "#/components/schemas/CreateMessageInteractionCallbackRequest" }, + { + "$ref": "#/components/schemas/LaunchActivityInteractionCallbackRequest" + }, { "$ref": "#/components/schemas/ModalInteractionCallbackRequest" }, @@ -3819,6 +3825,9 @@ { "$ref": "#/components/schemas/CreateMessageInteractionCallbackRequest" }, + { + "$ref": "#/components/schemas/LaunchActivityInteractionCallbackRequest" + }, { "$ref": "#/components/schemas/ModalInteractionCallbackRequest" }, @@ -10143,6 +10152,16 @@ "minItems": 1, "uniqueItems": true }, + "handler": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ApplicationCommandHandler" + } + ] + }, "type": { "oneOf": [ { @@ -10158,6 +10177,11 @@ "name" ] }, + "ApplicationCommandHandler": { + "type": "integer", + "oneOf": [], + "format": "int32" + }, "ApplicationCommandIntegerOption": { "type": "object", "properties": { @@ -11076,6 +11100,16 @@ }, "minItems": 1, "uniqueItems": true + }, + "handler": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ApplicationCommandHandler" + } + ] } } }, @@ -11947,6 +11981,11 @@ "title": "MESSAGE", "description": "A UI-based command that shows up when you right click or tap on a message", "const": 3 + }, + { + "title": "PRIMARY_ENTRY_POINT", + "description": "A command that represents the primary way to use an application (e.g. launching an Activity)", + "const": 4 } ], "format": "int32" @@ -12070,6 +12109,16 @@ "minItems": 1, "uniqueItems": true }, + "handler": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ApplicationCommandHandler" + } + ] + }, "type": { "oneOf": [ { @@ -21205,6 +21254,9 @@ { "$ref": "#/components/schemas/CreateMessageInteractionCallbackResponse" }, + { + "$ref": "#/components/schemas/LaunchActivityInteractionCallbackResponse" + }, { "$ref": "#/components/schemas/UpdateMessageInteractionCallbackResponse" }, @@ -21248,6 +21300,10 @@ { "title": "MODAL", "const": 9 + }, + { + "title": "LAUNCH_ACTIVITY", + "const": 12 } ], "format": "int32" @@ -22051,6 +22107,46 @@ } } }, + "LaunchActivityInteractionCallbackRequest": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 12 + ], + "allOf": [ + { + "$ref": "#/components/schemas/InteractionCallbackTypes" + } + ], + "format": "int32" + } + }, + "required": [ + "type" + ] + }, + "LaunchActivityInteractionCallbackResponse": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "enum": [ + 12 + ], + "allOf": [ + { + "$ref": "#/components/schemas/InteractionCallbackTypes" + } + ], + "format": "int32" + } + }, + "required": [ + "type" + ] + }, "ListApplicationEmojisResponse": { "type": "object", "properties": {