Skip to main content
You can use variables:
  • in plain message content
  • inside embeds
  • inside conditional blocks
You can also use other variables from the scripting variables page for custom messages.

Variable Reference

VariableOutput
{ticket.case}The ticket’s case number
{ticket.id}The ticket’s ID
{ticket.open}Whether the ticket is open
{ticket.deleted}Whether the ticket is deleted
{ticket.opened_label}The ticket’s opening label
{ticket.opened_at}The ticket’s opening time
{ticket.opened_at.raw}The ticket’s opening time (unix)
{ticket.opened_at.short}The ticket’s opening time (short)
{ticket.claimed_at}The ticket’s claim time
{ticket.claimed_at.raw}The ticket’s claim time (unix)
{ticket.claimed_at.short}The ticket’s claim time (short)
{ticket.migrated_at}The ticket’s migration time
{ticket.migrated_at.raw}The ticket’s migration time (unix)
{ticket.migrated_at.short}The ticket’s migration time (short)
{ticket.closed_at}The ticket’s closure time
{ticket.closed_at.raw}The ticket’s closure time (unix)
{ticket.closed_at.short}The ticket’s closure time (short)
{ticket.reopened_at}The ticket’s reopen time
{ticket.reopened_at.raw}The ticket’s reopen time (unix)
{ticket.reopened_at.short}The ticket’s reopen time (short)
{ticket.deleted_at}The ticket’s deletion time
{ticket.deleted_at.raw}The ticket’s deletion time (unix)
{ticket.deleted_at.short}The ticket’s deletion time (short)
{ticket.last_author_message_at}The ticket’s last author message time
{ticket.last_author_message_at.raw}The ticket’s last author message time (unix)
{ticket.last_inactivity_notice_at}The ticket’s last inactivity notice time
{ticket.last_inactivity_notice_at.raw}The ticket’s last inactivity notice time (unix)
{ticket.auto_delete_after_close}The auto-delete delay (seconds)
{ticket.auto_delete_after_close.human}The auto-delete delay (formatted)
{ticket.auto_delete_at}The scheduled auto-delete time
{ticket.auto_delete_at.raw}The scheduled auto-delete time (unix)
{ticket.auto_delete_at.short}The scheduled auto-delete time (short)
{ticket.closed_automatically}Whether the ticket was closed automatically
Timestamps usually come in three forms:
  • Normal Discord timestamp: {ticket.opened_at}
  • .raw unix timestamp: {ticket.opened_at.raw}
  • .short short date format: {ticket.opened_at.short}

Quick Tips

  • The base timer variables return raw seconds. Use the .human variants for formatted values like 5m, 2h, or 1d12h.
  • Use ticket.form.field.<key> for the display value users submitted.
  • Use ticket.form.field.<key>.raw when you need the raw stored value or selected ID.
  • ticket.creator.* is an alias of ticket.author.*.
  • Use ticket.reason.closed, ticket.reason.reopened, and the other reason vars for lifecycle messages.
  • Use ticket.closed_automatically when you want auto-close specific wording.
  • Use ticket.option.required_roles.mentions and ticket.option.required_roles.mode in the Required Roles message when you want the denial to explain exactly what the member is missing.
  • If you need a field to appear only sometimes, wrap it in {if ...}{/if}.