Supported Variables
Description of the variables you can use across your ticket system
A variable, just as in math, is something that can have a changing state. In your tickets you have access to certain variables whose value will vary among tickets, you can use these variables on the different fields of your ticket messages!!
Let's see a bit more about what each variable works for
General Variables
Variable | Description |
| Will display the server's name |
| The server's ID |
| Direct URL to the server's icon |
| Direct URL to the server's banner |
| Name of the channel in which the variable is being used |
| The ID of that channel |
| The current count of the panel in which this message was triggered |
| The name of the panel in which the variable is being used |
| The Ticket Limit for the current panel |
Ticket Variables
Variable | Description |
| Mention to the ticket channel in which the variable is used |
| The ID for the |
| The mention to the user who created the ticket |
| The name of |
| The ID of |
| The nickname of |
| Direct Url of the profile picture of the |
| The 4 digit discriminator, of the |
| The username + the 4 digit discriminator of |
{ticket.owner}
is just an alias of{ticket.user}
meaning it has all of it's sub-variables{ticket.owner.name}
and so on.This set of variables as it name tells, will only work within tickets, if you use it within a tag it will only render when used within a ticket.
Author Variables
Let's talk about the {author}
variable. Any action, such as opening, closing, claiming, deleting etc, a ticket, will have the {author}
variable, which refers to the user who triggered the action.
Variable | Description |
| The mention to the user who triggered the message |
| The name of the |
| The ID of the |
| The nickname of the |
| Direct Url of the profile picture of the user triggering this message |
| The 4 digit discriminator, of the |
| The username + the 4 digit discriminator of |
The {author}
variable has the same as usage as {user}
. Take into account that {ticket.user}
refers to the user creating a ticket, so if for example you want to ping the user of your ticket in the claiming, do not use {user}
as it will ping the user who claimed, if you want to ping use {ticket.user}
.
{user}
≠{ticket.user}
Special Variables
Variable | Description |
| Places an empty-like character on a required field of an embed |
| The given reason for the action triggered |
| Reason given for a ticket creation when using Command Style Tickets |
| Reason given for a ticket closure |
| Reason given for a ticket deletion |
| Reason given for a ticket claim |
| The last user who claimed a ticket, has the same sub-variables as |
| Replace |
| Replace |
| Will provide you with a random number (by default lower than 0), use variable modifiers to customize this behavior |
| Named group support variables for Regex, only works for Custom Commands |
Time Variables
Variable | Description |
| Sends the current unix time in seconds |
| Will send the unix time using Discord's timestamp native feature |
| A human-readable text that indicates how long ago was the ticket created |
| A human-readable text that indicates the time between the ticket's creation and it being claimed |
| A human-readable text that indicates the time between the ticket's creation and it being closed |
| A human-readable text that indicates the time between the ticket's closure and it being re-opened |
| A human-readable text that indicates the time between the ticket's creation and it being deleted |
| A unix timestamp pointing to the time when the ticket was opened |
| A unix timestamp pointing to the time when the ticket was claimed |
| A unix timestamp pointing to the time when the ticket was closed |
| A unix timestamp pointing to the time when the ticket was re-opened |
| A unix timestamp pointing to the time when the ticket was deleted |
The time-action variables that point to actions that can take place more than once (e.g claiming, closure, re-opening), will take the value of the last moment the action took place.
For a more convinient use on Discord's Dynamic Timestamps we recommend you checking HammerTime, here you can replace the actual unix time for the {time}
variable to make custom messages!
Modifiers
Since October 2022, you can customize even more your variables! These are all the modifiers you can apply at the end of your variables, remember that to use them you must prefix them using ?
, check the cheatsheet for a sample.
Modifier | Aliases | Description |
|
| Will make the variable to be upper case |
|
| Will make the variable to be lower case |
|
| Set the maximum lenght for a variable, if it's exceeded, the variable will be truncated |
|
| Pad the variable to the left with zeros |
|
| Pad the variable to the right with zeros |
|
| If the variable you attach this modifier to is empty, the fallback text (anything placed after the |
|
| If the variable you attach this modifier to contains information, the fallback text (anything placed after the |
|
| Use algebra operators ( |
| None | Replaces the ` character to prevent breaking in variables such as |
| None | Add this modifier to the |
| None | Set the minimum value |
| None | Set the maximum value |
Cheatsheet
Here you'll find some examples when using this modifiers, if you have questions around them, don't hesitate to contact our Support Team
Last updated