#
Templates
Recent changes
- Addition of the templates system
- Bug fixes
Templates in Server Manager are, well, templates of the following:
- Messages (with content and embeds)
Buttons - Menus/selects *(coming soon)
Message templates serve as the foundation of the entire system by enabling the sending of comprehensive messages in channels. These templates can include buttons, embeds, and various other elements. Additionally, the option to include an optional webhook allows for more versatile message delivery.
#
Commands
#
Buttons
You can create buttons with a label, color/style, unique id, multiple actions, and an optional URL (for link buttons). These buttons can be attached to message templates, providing them with a comfortable "home." This is referred to as the parent message of a button.
#
Actions
The button callback triggers actions. Each button allows for 2 actions (5 with premium). If you require an increase in the actions limit for a particular button but prefer not to buy premium, please don't hesitate to contact us in our support server ( #limits-increase channel). Follow the instructions provided in the channel to submit a request for increasing the limits.
#
Self/Button Roles
Indeed! You can utilize buttons and the Toggle Role action to accomplish self roles. By default, the bot will provide information about the role that was granted or revoked. However, you have the option to customize this response by including a send template response action within the button's actions.
#
Webhooks
You are given the ability to use webhooks to even more customize message templates. The bot can send messages with any webhook in the server, but make sure it has the Manage Webhooks permission.
Webhooks With Buttons
Templates featuring buttons are restricted from being sent with webhooks unless the bot is the owner of the webhook. This is the reason why the /messages create name:Self roles command exists. It addresses the limitation imposed by Discord, which prohibits bots from managing buttons on webhook messages they don't own, and this restriction is quite understandable for obvious reasons.