Discord · Schema
ApplicationCommandSubcommandOption
ChatCommunicationGamingMessagingSocialVideoVoice
Properties
| Name | Type | Description |
|---|---|---|
| type | integer | |
| name | string | |
| name_localizations | objectnull | |
| description | string | |
| description_localizations | objectnull | |
| required | booleannull | |
| options | arraynull |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/ApplicationCommandSubcommandOption",
"title": "ApplicationCommandSubcommandOption",
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
1
],
"allOf": [
{
"$ref": "#/components/schemas/ApplicationCommandOptionType"
}
],
"format": "int32"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"name_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"maxProperties": 34
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"description_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"maxProperties": 34
},
"required": {
"type": [
"boolean",
"null"
]
},
"options": {
"type": [
"array",
"null"
],
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ApplicationCommandAttachmentOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandBooleanOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandChannelOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandIntegerOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandMentionableOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandNumberOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandRoleOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandStringOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandUserOption"
}
]
},
"maxItems": 25
}
},
"required": [
"type",
"name",
"description"
]
}