Command Events
All command related events emitted by the WebSocket Server
Overview
You can enable Command
events with this Subscribe request:
Subscribe Request
{
"request": "Subscribe",
"id": "my-subscribe-id",
"events": {
"Command": [
"Triggered",
"Cooldown",
]
},
}
Events
Triggered
{
"command": "!bots",
"counter": 1,
"userCounter": 1,
"message": "",
"user": {
"id": 00000000,
"login": "<username>",
"display_name": "<user's display name>",
"subscribed": true,
"role": 4
}
}
Cooldown
{
"command": "!bots",
"cooldownLeft": 11,
"globalCooldownLeft": 11,
"userCooldownLeft": 0,
"message": "",
"user": {
"id": 00000000,
"login": "<username>",
"display_name": "<user's display name>",
"subscribed": false,
"role": 1
}
}