Skip to content
Interactions context

$context — Where the interaction was run: Guild, or BotDM outside a server.

Where the interaction was run: Guild, or BotDM outside a server.

Syntax

$context

Parameters

None.

Return Value

  • String.

Usage

$context → result

Example

$sendMessage[$context]

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.