List commands
Chat commands of your channel with reply, aliases, level, cooldowns, cost and whether they are on.
GET https://cotlet.dev/api/v1/streamelements/commands
read
Returns the custom commands of your channel, ordered by name, with the reply text, aliases, who may use it, global and user cooldowns in seconds, point cost and response type. Search matches the command name and the reply text. Pass command_id to update_command.
Parameters
| Name | Type | Description |
|---|---|---|
| search string | string | Only commands whose name or reply contains this text. |
| enabled boolean | boolean | Only commands that are on (true) or off (false). |
| limit integer | integer | 1 to 100. Default: 50. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/streamelements/commands \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("streamelements", "list_commands") const result = await cotlet.call('streamelements', 'list_commands'); cotlet call streamelements list_commands Example response
{
"commands": [
{
"command_id": "c_4b19e0",
"trigger": "!schedule",
"aliases": [
"!stream"
],
"reply": "Streams this week: Mon-Fri 19:00 CET.",
"level": "Everyone",
"cooldown": {
"global": 5,
"user": 15
},
"cost": 0,
"response_type": "say",
"enabled": true
}
],
"next_cursor": null
}