Message Templates
Thrella uses a template system for all bot-generated messages, including DMs sent to users during moderation actions, alert channel embeds, and appeal notification DMs. Every template is fully configurable at two levels: globally (by bot admins) and per-guild (by server staff).
Template Categories
Templates are organized into three categories:
Alert Channel Messages (5 templates)
These templates control the embed that is posted to a server's alert channel when a security detection occurs. All link filter detection types are consolidated into a single template so you only need to customize one message for link-related alerts.
| Template | Detection Type |
|---|---|
| Link Filter Alert | Any link filter detection |
| Discord Invite | Unauthorized invite blocked |
| Forwarded Message | Forward from unknown server blocked |
| Unapproved URL | URL not on approved domain list |
| PFP Filter Alert | User with a blocked or suspicious profile picture detected |
Fields: Title, Description, Case Reason, Color.
Available variables: {userId}, {channelId}, {sourceGuildId}, {detectedUrl}, {detectionType}, {category}, {similarity}.
User DM Messages (6 templates)
These templates control the direct message sent to users when a moderation action is taken against them.
| Template | When Sent |
|---|---|
| Ban DM | User is banned (via /ban command or AutoMod) |
| Kick DM | User is kicked (via /kick command or AutoMod) |
| Mute DM | User is timed out (via /timeout command or AutoMod) |
| Warning DM | User is warned (via /warn command or AutoMod) |
| Delete & Warn DM | User's message is deleted by a security filter with the DELETE_WARN action |
| Case Revoked DM | A user's active BAN or MUTE case is revoked from the dashboard |
Fields: Title, Description, Color, Show Appeal Button, Appeal Button Text.
Available variables: {guildName}, {reason}, {duration}.
The Case Revoked DM additionally supports {actionLabel} (the original action, e.g. "ban" or "timeout"), {caseId} (the new UNBAN or UNMUTE case number), {parentCaseId} (the revoked case number), and {moderatorName} (the staff member who revoked the case).
Appeal Notifications (2 templates)
These templates control the DM sent to users when their appeal is reviewed by staff.
| Template | When Sent |
|---|---|
| Appeal Approved | Staff approves a user's appeal |
| Appeal Denied | Staff denies a user's appeal |
Fields: Title, Description, Color.
Available variables: {guildName}, {caseId}, {action}, {status}, {reviewNote}.
Resolution Order
Templates are resolved using a 3-tier system. When the bot needs to send a message, it checks for a template in the following order:
- Guild override -- If the server has a custom template configured for this message type, it is used.
- Global custom -- If a bot admin has configured a global default for this message type, it is used.
- Built-in default -- The hard-coded default template is used.
This means that server staff can override specific templates for their guild without affecting other servers, and bot admins can change the global defaults without modifying code.
Variables
Template text supports variable placeholders written as {variableName}. When the message is sent, each placeholder is replaced with the actual value. For example, a ban DM template with:
Banned from {guildName}
would render as:
Banned from My Server
Any unresolved variables (for example, {duration} in a ban template where no duration applies) are automatically removed from the final message.
Appeal Button
DM templates include an optional Appeal Button toggle. When enabled and the guild has the appeals system active, the DM includes a clickable link button that takes the user directly to the appeal page. You can also customize the button text (default: "Appeal this action").
Disable the appeal button on warning templates if you do not want warned users to see an appeal option, since warnings do not restrict access to the server.
Configuring Templates
Templates can be configured in two places:
- Global defaults: Bot admins can configure global templates at Admin Panel > Message Templates. Changes here affect all guilds that have not overridden the template.
- Per-guild overrides: Server staff can override templates at Dashboard > Templates. Only overridden templates are stored; all others fall back to the global default.
For details on the dashboard interface, see the Templates Page guide.