On this page
JavaScript API

Placeholders

Context placeholders ((author.id)) used in BDScript and available in script templates.

Placeholders inject runtime context into BDScript templates. In BDJS you typically use the interaction, message, guild, and channel globals directly, but placeholders remain available in mixed BDScript/BDJS workflows.

Syntax

((variable.path))

Common placeholders

Placeholder Description
((author.id)) User who triggered the command
((author.username)) Username
((guild.id)) Current guild ID
((channel.id)) Current channel ID
((interaction.customId)) Component custom ID
((interaction.stringSelect.value)) Select menu value

BDScript example

$sendMessage[Hello <@((author.id))>!]

Full reference

See the Available Variables per Event guide for an exhaustive event-variable list.

For component interactions, see Handling Rich Interactions — buttons, select menus, and modals.