> ## Documentation Index
> Fetch the complete documentation index at: https://docs.razebot.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Variables

> Ticket-specific variables available in opening embeds and custom messages.

# Variables

> Ticket-specific variables available in opening embeds and custom messages.

You can use variables:

* in plain message content
* inside embeds
* inside conditional blocks

<Tip>
  You can also use standard variables from the [scripting variables](/resources/variables) page such as `{user.mention}`, `{server.name}`, and more.
</Tip>

***

## Variable Reference

<Tabs>
  <Tab title="Core">
    | Variable                   | Output                                            |
    | -------------------------- | ------------------------------------------------- |
    | `{ticket.id}`              | The ticket channel's ID                           |
    | `{ticket.status}`          | The ticket's status (`open`, `closed`, `deleted`) |
    | `{ticket.priority}`        | The ticket's current priority label               |
    | `{ticket.opened_at}`       | When the ticket was opened                        |
    | `{ticket.opened_at.raw}`   | Opening time as a unix timestamp                  |
    | `{ticket.opened_at.short}` | Opening time in short date format                 |
    | `{ticket.closed_at}`       | When the ticket was closed                        |
    | `{ticket.closed_at.raw}`   | Closing time as a unix timestamp                  |
    | `{ticket.closed_at.short}` | Closing time in short date format                 |

    <Tip>
      Timestamps come in three forms. The plain form (e.g. `{ticket.opened_at}`) renders as a full Discord timestamp. `.raw` gives the unix integer. `.short` gives a short date.
    </Tip>
  </Tab>

  <Tab title="Users">
    These same fields are available for each of the following prefixes:
    `{ticket.creator}`, `{ticket.author}`, `{ticket.claimer}`, `{ticket.closer}`

    <Info>
      `{ticket.creator}` and `{ticket.author}` are aliases for the same person.
    </Info>

    **Available suffixes:**

    | Suffix          | Output                  |
    | --------------- | ----------------------- |
    | *(no suffix)*   | The user's ping         |
    | `.mention`      | The user's ping         |
    | `.name`         | The user's username     |
    | `.display_name` | The user's display name |
    | `.id`           | The user's ID           |
    | `.full`         | The user's full tag     |
    | `.tag`          | The user's full tag     |
    | `.avatar`       | The user's avatar URL   |

    **Examples:**

    * `{ticket.creator.mention}` — pings the ticket opener
    * `{ticket.closer.display_name}` — name of who closed it
    * `{ticket.claimer.id}` — ID of the claimer
  </Tab>

  <Tab title="Channel">
    | Variable                   | Output                       |
    | -------------------------- | ---------------------------- |
    | `{ticket.channel}`         | The ticket channel's mention |
    | `{ticket.channel.mention}` | The ticket channel's mention |
    | `{ticket.channel.name}`    | The ticket channel's name    |
    | `{ticket.channel.id}`      | The ticket channel's ID      |
  </Tab>

  <Tab title="Topic">
    | Variable                     | Output                  |
    | ---------------------------- | ----------------------- |
    | `{ticket.topic}`             | The topic's name        |
    | `{ticket.topic.name}`        | The topic's name        |
    | `{ticket.topic.description}` | The topic's description |
    | `{ticket.topic.emoji}`       | The topic's emoji       |
  </Tab>

  <Tab title="Transcript">
    | Variable                  | Output                               |
    | ------------------------- | ------------------------------------ |
    | `{ticket.transcript.url}` | Direct link to the ticket transcript |

    <Note>
      The transcript URL is only populated after the ticket is closed. It will be empty in opening embeds.
    </Note>
  </Tab>
</Tabs>

***

## Quick Tips

* `{ticket.creator.*}` and `{ticket.author.*}` always refer to the same member.
* `{ticket.claimer}` and `{ticket.closer}` are blank until those events occur — use them in close messages, not opening embeds.
* Transcript variables are only available after close. Use them in log channel embeds or DM messages.
* Wrap conditional content in `{if ...}{/if}` to show it only when a variable has a value.
