> ## 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.

# Custom Messages

> Customise the opening embed, panel message, and transcript log with embed scripting and ticket variables.

# Custom Messages

> Customise the opening embed, panel message, and transcript log with embed scripting and ticket variables.

## Overview

The ticket system supports plain text, embed blocks via `{embed}`, [ticket variables](/server-config/tickets/variables), and conditional logic. All message fields fall back to a built-in default when left blank.

<Tip>
  You can learn how to create embeds on the [Embeds](/resources/scripting/embeds) documentation page.
</Tip>

***

## Base Customisation

### Opening embed

Sent inside the ticket channel immediately after it opens. Set per topic.

```bash theme={null} theme={null}
;ticket settings embed (topic) (embed code)
```

### Panel message

The message members click to open a ticket.

```bash theme={null} theme={null}
;ticket send [#channel] (embed code)
```

### Transcript log channel

Where transcripts are posted when a ticket closes.

```bash theme={null} theme={null}
;ticket settings logs (#channel)
```

***

## Embed Examples

### Basic opening embed

```bash theme={null} theme={null}
{embed}
$v{color: #7B68EE}
$v{title: 🎫 Ticket Opened}
$v{description: Hey {ticket.creator.mention}, a staff member will be with you shortly.}
$v{field: Opened && {ticket.opened_at} inline}
$v{field: Topic && {ticket.topic} inline}
```

### Panel message embed

```bash theme={null} theme={null}
{embed}
$v{color: #7B68EE}
$v{title: 🎫 Open a Ticket}
$v{description: Select a topic from the dropdown below to open a support ticket with our team.}
$v{footer: {server} Support}
```

***

## Conditional Blocks <Badge color="orange">Advanced</Badge>

Conditional blocks control what gets displayed based on a variable's value. Use them to make messages adapt to different situations — like whether a ticket was closed automatically or by staff.

<Warning>
  Conditional blocks do not support nesting at this time.
</Warning>

### Supported syntax

```bash theme={null} theme={null}
{if CONDITION}
code here that displays if condition is met
{elseif OTHER_CONDITION}
other code here that displays if elseif condition is met
{else}
other code here if nothing else matches
{/if}
```

### Condition types

* `{ticket.var} == value` — exact match
* `{ticket.var} != value` — not equal
* Truthy check: `{if {ticket.claimer}}` — true if the variable has a value

### Auto-close example

```bash theme={null} theme={null}
{embed}
$v{title: Ticket Closed}
$v{description: This ticket has been closed.}

{if {ticket.status} == closed}
$v{field: Closed by && {ticket.closer.mention} inline}
{/if}

$v{field: Priority && {ticket.priority} inline}
```
