$v. You’ll rarely write one from scratch: build in Dashboard → Content → Designs and press Export to see it. This page is for when you want to tweak one by hand.
Embed blocks
Container blocks
Button options
Buttons are written as{button:label: Rules && url: https://curebot.site && emoji: 📘}. Options are name: value, joined with &&:
Form fields
A form ({modal}) asks questions in a pop-up. Each field is {input:id|Label|style|required|placeholder}:
Save a form with
/automation form save, then open it from a button with modal: name.
Escaping
Showing different things to different people
Wrap blocks in{if:…}, {else-if:…}, {else} and {/if}:
=, !=, >, <, >=, <=, contains, not contains, starts with, ends with. A variable alone is true unless it’s empty, 0, false, no or off.
Deleting itself
Add--delete 30s at the end of any message or script, and it deletes itself after that long (from 1s up to 365d; m, h and d work too).
Variables
/customize variables list shows every variable in Discord. The full list:
