Skip to main content

notify template_create - Create Notification Template

Command

/notify template_create

Description

This command is used to create a Role Notification Template.

You can customize the message content sent by RoleTimer Bot when a role is obtained (Add) and removed (Remove). It supports variables (such as {username}) to display information dynamically.

Usage

/notify template_create <add_msg> <remove_msg> [channel] [name] [color]

Parameters

Required Parameters

  • <add_msg>: The message sent when a member obtains the role. Supported variables: {username} (username), {role} (role name), {endtime} (expiration time).
  • <remove_msg>: The message sent when a member loses the role. Supported variables: {username}, {role}.

Optional Parameters

  • [channel]: The Discord channel where the message is sent. (Default: Current channel where command is executed).
  • [name]: Give the template a name for easier management.
  • [color]: The border color of the message Embed. (e.g. #FF0000, Default: #FACE5A).
    • Limit: Premium feature, custom colors not available in Free version.

Examples

Example 1: Create a basic welcome template.

/notify template_create add_msg:Welcome {username} to {role}! remove_msg:{username}'s {role} has expired.

Example 2: Create a VIP template sent to the #announcements channel, specifying the expiration time.

/notify template_create add_msg:Congrats {username} upgraded to {role}, valid until {endtime}! remove_msg:{username} is no longer {role}. channel:#announcements name:VIP_Notify

Premium Features

  • Creation Limit: Free version limit 1 template, Premium unlimited.
  • Custom Color: Free version does not support, Premium supports custom message colors.

Notes

  • Assign after Creation: Creating a template is just the first step. You need to use the /notify assign command to assign it to specific roles for it to take effect.

FAQ

  • Q: Can I send only an add message and not a remove message? A: Currently, both parameters must be filled in.