Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.p2w.lol/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Variables can be used in:
  • Plain message content
  • Inside embeds ($v{...} syntax)
  • Inside conditional blocks ({if ...})
Use {variable.name} syntax anywhere a message field is configurable.

Variable Reference

VariableOutput
{ticket.case}The ticket’s case number
{ticket.id}The ticket’s channel ID
{ticket.open}Whether the ticket is open (yes/no)
{ticket.deleted}Whether the ticket is deleted (yes/no)
{ticket.type}The ticket’s option label
{ticket.status}The ticket’s current status
{ticket.opened_at}The ticket’s opening time
{ticket.opened_at.raw}Opening time as a unix timestamp
{ticket.opened_at.short}Opening time as a short date
{ticket.claimed_at}The ticket’s claim time
{ticket.claimed_at.raw}Claim time as a unix timestamp
{ticket.claimed_at.short}Claim time as a short date
{ticket.migrated_at}The ticket’s migration time
{ticket.closed_at}The ticket’s closure time
{ticket.closed_at.raw}Closure time as a unix timestamp
{ticket.closed_at.short}Closure time as a short date
{ticket.reopened_at}The ticket’s reopen time
{ticket.deleted_at}The ticket’s deletion time
{ticket.last_author_message_at}Time the creator last sent a message
{ticket.last_inactivity_notice_at}Time the last inactivity notice was sent
{ticket.auto_delete_after_close}The auto-delete delay in seconds
{ticket.auto_delete_after_close.human}The auto-delete delay formatted
{ticket.auto_delete_at}The scheduled auto-delete time
{ticket.closed_automatically}Whether the ticket was auto-closed (yes/no)

Guild & Date Variables

VariableOutput
{guild.name}Server name
{guild.id}Server ID
{guild.count}Server member count
{guild.icon}Server icon URL
{guild.banner}Server banner URL
{date.now}Current date (YYYY-MM-DD)
{date.now_proper}Current date (Month DD, YYYY)
{date.utc_timestamp}Current unix timestamp
{time.now}Current time (HH:MM AM/PM)

Quick Tips

  • Timestamps come in three forms: normal Discord timestamp {ticket.opened_at}, unix {ticket.opened_at.raw}, and short date {ticket.opened_at.short}.
  • 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 for ticket.author.*.
  • Use {ticket.closed_automatically} when you want auto-close-specific wording.
  • Use {ticket.option.required_roles.mentions} in the Required Roles message to show exactly what the member is missing.
  • To make a field appear only sometimes, wrap it in {if ...}{/if}.