HTTP & JSON
Premium
wsStatus
$wsStatus[]
$wsStatus returns the state of a WebSocket source: closed, connecting (opening or reconnecting), open, or error (stopped after repeated refusals, a message that was too large, or a flood).
Premium Reserved for Premium accounts. See plans
Syntax
bdfd
$wsStatus[source]
Parameters
| Parameter | Description |
|---|---|
source |
Required. The name of a source declared on the bot’s WebSocket page. An unknown name returns closed. |
Examples
$if[$wsStatus[partie]!=open]
$wsJoin[partie;$channelID]
$endif
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.