Adding more to queue_command

This commit is contained in:
DaanV2
2023-12-14 19:56:40 +01:00
parent f7396a8d74
commit 029760764a

View File

@@ -148,13 +148,25 @@
"description": "Queues a command to be executed.", "description": "Queues a command to be executed.",
"properties": { "properties": {
"command": { "command": {
"title": "Command",
"description": "The command to execute.",
"oneOf": [
{
"type": "string",
"pattern": "^[^/].*$",
"examples": ["say Hello World"]
},
{
"type": "array", "type": "array",
"items": { "items": {
"type": "string", "type": "string",
"description": "The command to execute.", "description": "The command to execute.",
"examples": ["/say Hello World"] "examples": ["say Hello World"],
"pattern": "^[^/].*$"
} }
} }
]
}
} }
} }
} }