Embeds and components
Render embeds, pages, buttons, dropdowns, and Components V2 containers from a response script.A response script is parsed into tags of the form
{key: value}. Text before the first tag becomes the message content. The $v prefix used elsewhere in raze scripting is accepted and ignored, so $v{title: Hi} and {title: Hi} are the same thing.
Arguments inside one tag are separated by &&.
Embeds
1
Add embed tags to the response
2
Add fields and a footer
3
Preview before publishing
Embed tags
These are the exact key names — there are no
desc, thumb, or gif shorthands in a custom command script.Multiple embeds
Write{embed} to start a new embed block. Repeating a unique key (title, description, url, color, image, thumbnail, footer, author, timestamp) starts one implicitly.
Pages
Split a script with{page} to send a paginated message with first / previous / next / last navigation buttons.
;cc preview shows page 1 only and says so; navigation needs a real invocation.Buttons
- With
link, the next argument must be the URL. - With any other style, the next argument is the custom ID; omit it and one is generated.
- Passing a style name as the first argument makes an icon-only button with no label.
- Maximum 5 buttons per message.
Dropdowns
Two grammars are supported, and the tag name you type decides which one is used.- Compact — dropdown
- Explicit — select
|. Only the label is required.reply=(text) is shorthand for a response action.disabled: true as an argument to render the menu greyed out. Maximum 2 dropdowns per message and 25 options each.
Component actions
action= defines what happens when a button is pressed or an option is chosen.
Send a response
Send a response
title, description, color, field, and so on.Give or take roles
Give or take roles
role toggles. Pass several IDs separated by commas. Roles above raze, or roles carrying Administrator, are skipped.Open a modal
Open a modal
style is short or paragraph. Add more input{...} blocks for more fields. With channel: set, submissions are also posted to that channel as a summary embed.Containers
{container: ...} renders a Components V2 layout instead of an embed.
Beyond the message
{react: ...}, {attachment: ...}, {thread: ...}, and top-level {role: ...} / {add_role: ...} / {remove_role: ...} all work in a custom command response, alongside the {delete}, {silent}, {respond:}, {dm}, and {cooldown:} directives. See Output controls.
Modals are opened from a component action= — see Open a modal.
