Variables · supported
{platform}
Platform where the command was used
variable.global.platform · 2.8.0
Requirements and availability
Values depend on the invocation context; timers and buttons do not have an incoming viewer.
Picker contexts: automation, timer, command, pad.
Variable providers: twitch, youtube, kick, tiktok.
Behavior
Platform where the command was used
Contract details
- Key
- platform
- Category
- Channel
- Description
- Platform where the command was used
- Canonical Key
- platform
- Syntax
- {platform}
- Aliases
[]- Producer
- Global command variable engine, resolved on demand.
- Fallback
- Unavailable
- Fallback Note
- This fallback applies on null/error/timeout; a resolver may return its own 0, empty string or descriptive value instead.
- Lifetime
- Resolved for this template; data may be live, cached or persisted according to its provider.
Examples
A single variable expression; context and data prerequisites still apply.
{platform}Related entries
Source and verification
Source-reviewed for 2.8.0. Connected-service validation remains subject to release UAT.
- server.js — COMMAND_VARIABLE_DEFINITIONS.platform
- src/features/command-variables.js — createCommandVariableEngine
Source revision: 472fb34b484eeef0b663d28cacb628a7b9f14ff1