Properties
| Name | Type | Description |
|---|---|---|
| type | integer | |
| custom_id | stringnull | |
| style | object | |
| label | stringnull | |
| disabled | booleannull | |
| emoji | object | |
| url | stringnull | |
| sku_id | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/Button",
"title": "Button",
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
2
],
"allOf": [
{
"$ref": "#/components/schemas/MessageComponentTypes"
}
],
"format": "int32"
},
"custom_id": {
"type": [
"string",
"null"
],
"maxLength": 100
},
"style": {
"$ref": "#/components/schemas/ButtonStyleTypes"
},
"label": {
"type": [
"string",
"null"
],
"maxLength": 80
},
"disabled": {
"type": [
"boolean",
"null"
]
},
"emoji": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/Emoji"
}
]
},
"url": {
"type": [
"string",
"null"
],
"maxLength": 512,
"format": "uri"
},
"sku_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
}
},
"required": [
"type",
"style"
]
}