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

# Template Variables

> A list of variables that can be used throughout different parts of Fyre like Last.fm and tickets.

<Info>Variables with a question mark are optional, and may not always be present (eg: `example?`).</Info>

## Guild/Server Variables

These variables represent the guild/server a command was used in or an event was triggered in.

* `guild.id`: Your server's Discord ID.
* `guild.name`: Your server's name.
* `guild.icon`: Your server's icon URL.
* `guild.memberCount`: Your server's member count.
* `guild.presenceCount?`: Your server's approximate presence (online member) count.

## Channel Variables

These variables represent the channel a command was used in or an event was triggered in.

* `channel.id`: The target/current channel's ID.
* `channel.name`: The target/current channel's name.
* `channel.mention`: The target/current channel's mention.

## User Variables

These variables represent the target or a command, executor of a command, or trigger of an event.

* `user.id`: The target/executor's ID.
* `user.nick`: The target/executor's nickname, or none if not set.
* `user.avatar`: The target/executor's avatar URL.
* `user.mention`: The target/executor's user mention.
* `user.display`: The target/executor's display name (nickname, global name, or username).
* `user.username`: The target/executor's username.

## Last.fm Variables

These variables are available when using a Custom Theme with Fyre's Last.fm integration.

### Track Variables

* `track.url`: A link to the track on Last.fm.
* `track.name`: The name of the track.
* `track.mbid?`: The track's MusicBrainz identifier.
* `track.loved`: If the track is loved on Last.fm (boolean).
* `track.imageUrl`: A link to the track's album artwork on Last.fm.
* `track.listeners`: The amount of current track listeners on Last.fm.
* `track.duration?`: The duration of the track in seconds.
* `track.nowPlaying`: If you are currently listening to the track (boolean).
* `track.playCount`: The Last.fm user play count for the track.
* `track.totalPlayCount`: The Last.fm all user play count for the track.
* `track.album.name`: The name of the track's album on Last.fm.
* `track.album.mbid?`: The track's album's MusicBrainz identifier.
* `track.artist.url?`: A link to the track's artist on Last.fm.
* `track.artist.name`: The track's artist's name.
* `track.artist.mbid?`: The track's artist's MusicBrainz identifier.
* `track.artist.imageUrl?`: The track's artist's logo or icon.

### Attribute Variables

* `attributes.username`: The connected user's Last.fm username.
* `attributes.totalScrobbles`: The connected user's total scrobble count.

## Date & Time Variables

* `now` - The current date and time as a unix timestamp, can be embedded or formatted with the `formatDate` helper.

## Feature Specific Variables

These variables are specific to certain features like tickets or the AFK system.

<Tabs>
  <Tab title="AFK" icon="moon">
    * `afk.status?` - The AFK users's custom status (if set).
    * `afk.duration` - The duration of the target's AFK status (if AFK).
    * `afk.mentionLinks?` - A list of message links where the target was mentioned (if AFK).
  </Tab>

  <Tab title="Form" icon="list-check">
    * `form.name` - The name of the form.
    * `form.description` - The description of the form.
    * `form.questions` - A list of questions in the form.
  </Tab>

  <Tab title="Ticket Channels" icon="tickets">
    * `username` - The username of the ticket owner.
    * `claimer` - The username of the ticket claimer.

    <Info>These variables are only for ticket channel name formats.</Info>
  </Tab>
</Tabs>

## Random Variables

These variables generate random things for various purposes.

* `random.pose`: One of the following random pose emojis: 🫡, 👊, ✊, 👌, 🤌, 🤏, 🤟, 👍, 👎.
