InfiniTeaInfiniTea Docs
How It WorksFor Server Staff

Variables

Variables are reusable placeholders that InfiniTea resolves at runtime across multiple features including Message Builder, welcome/goodbye messages, ticket responses, and onboarding flows. They allow staff to maintain consistent, dynamic content without duplicating configuration.

How Variables Work

When InfiniTea encounters a variable placeholder like {server_name} or {member_count} in any message template, it replaces the placeholder with the current live value at the moment the message is sent. This means your templates stay up to date without manual editing.

Variables come in two categories:

  • System variables: Built-in values InfiniTea provides automatically (server name, member count, user mention, channel name, etc.).
  • Custom variables: Staff-defined key/value pairs that can be referenced anywhere variables are supported.

Governance Model

  • Treat Variables as shared configuration primitives. A single variable can be referenced by many features simultaneously.
  • Changing a variable value affects every message template that references it. Coordinate changes with your staff team.
  • Use naming conventions to prevent collisions and clarify ownership.
  • Prefix by domain when the variable is feature-specific: {ticket_hours}, {welcome_role}, {mod_channel}.
  • Use generic names for truly global values: {server_name}, {support_link}.
  • Always set explicit fallback values for custom variables. If a variable is undefined at render time, the fallback prevents broken-looking messages.
  • Document your variable naming scheme in an internal staff channel so new moderators can reference it.

Common Use Cases

VariableUsed InPurpose
{user}Welcome messagesMentions the joining member
{server_name}Ticket responsesDisplays current server name
{ticket_hours}Ticket panelShows support hours
{welcome_role}OnboardingReferences the default role name

Troubleshooting

  • If a variable renders as raw text (e.g., literally {ticket_hours}), confirm the variable is defined in Settings and the feature supports variable resolution.
  • If a variable shows an outdated value, check whether someone updated the variable recently and whether the message was cached.