Template Types
RaidBot includes two types of templates:Built-in Templates
Pre-configured templates for popular Wizard101 raids (Dragonspyre, Lemuria, Polaris, etc.)
Custom Templates
User-created templates with custom roles, emojis, and configurations
Managing Templates
Use the/templates command to manage raid templates:
- All available templates (built-in and custom)
- Template status (enabled/disabled)
- Override names
- Template type
The interactive panel times out after 5 minutes of inactivity (commands/templates.js:39).
Template Operations
Viewing Templates
The summary view shows all templates with:- Status: Enabled or Disabled
- Override name: Custom display name (if set)
- Type: Built-in or Custom
Enable/Disable Templates
- Run
/templates - Select a template from the dropdown
- Click “Enable” or “Disable” button
- Don’t appear in the
/createcommand dropdown - Can’t be used for new signups
- Existing signups using the template remain functional
Rename Templates
Override the display name of any template:- Run
/templates - Select a template from the dropdown
- Click “Rename” button
- Enter new display name in the modal
- Confirm to save
- Show the custom name in
/createdropdown - Keep original roles and configuration
- Can be reset to original name
Edit Template Metadata
Customize template appearance:- Run
/templates - Select a template from the dropdown
- Click “Edit basic” button
- Update fields:
- Display name: Template name shown in menus
- Emoji: Optional emoji prefix
- Hex color: Embed color (e.g.,
#ff9900)
- Confirm to save
Reset Built-in Templates
Restore a built-in template to default settings:- Run
/templates - Select a built-in template
- Click “Reset” button
Custom Templates
Creating Custom Templates
Create new raid templates from scratch:- Run
/templates - Click “Create new” button
- Fill in the modal:
- Template name: Display name (required)
- Emoji: Optional emoji prefix
- Hex color: Optional embed color
- Confirm to create
Duplicating Templates
Clone an existing template to customize it:- Run
/templates - Select any template (built-in or custom)
- Click “Duplicate to edit roles” button
- Original name + ” Copy”
- Same roles and role groups
- Same emoji and color
- Enabled by default
Editing Custom Template Roles
Customize roles and positions (custom templates only):- Run
/templates - Select a custom template
- Click “Edit roles” button
- Enter role configuration in the modal (commands/templates.js:286-289):
- Group: Role group name (e.g., “Vanguard”, “Support”)
- Emoji: Reaction emoji for this role (e.g., “1️⃣”, “⚔️”)
- Role: Display name (e.g., “Storm 1”, “Jade”)
- Slots: Number of positions (integer > 0)
- Icon: Optional custom emoji/icon
Each line defines one role. Use
| (pipe) as the delimiter. Icon is optional (commands/templates.js:415).Deleting Custom Templates
- Run
/templates - Select a custom template
- Click “Delete” button
Template Data Structure
Templates are stored in two locations:Built-in Templates
Defined inraid_templates.json (templates.js:6):
Custom Templates
Stored in the database (templatesManager.js:26-41):- Table:
custom_templates - Fields:
id,guild_id,name,emoji,description,color,role_groups - Scope: Per-guild (each server has independent custom templates)
Template Overrides
Per-guild overrides for built-in templates (templatesManager.js:12-24):- Table:
template_overrides - Fields:
guild_id,template_id,name,emoji,description,color,disabled - Scope: Per-guild
Template Selection
When creating a raid with/create, only enabled templates appear in the dropdown.
Template display order:
- Built-in templates (if enabled)
- Custom templates (if enabled)
- Sorted alphabetically by display name
Template Loading
Templates are loaded per-guild with overrides applied (templatesManager.js:56-88):- Load built-in templates from JSON
- Apply guild-specific overrides (name, emoji, color, disabled)
- Load guild custom templates from database
- Merge and return complete template list
Template changes take effect immediately. No bot restart required.
Role Groups
Templates organize roles into groups:Best Practices
Descriptive Names
Use clear template names like “Void (8-man)” instead of generic names.
Consistent Emojis
Use consistent emoji patterns across templates for user familiarity.
Disable Unused
Disable templates you don’t use to keep the
/create menu clean.Test Custom Templates
Create a test raid with new custom templates before using in production.
Backup Custom Templates
Export template configurations before making major changes.
Use Groups Wisely
Group similar roles together (e.g., “DPS”, “Support”, “Utility”).
Troubleshooting
Template not appearing in /create
Template not appearing in /create
- Check if template is enabled
- Verify you have permission to create raids
- Ensure template has at least one role defined
Role editing fails for built-in template
Role editing fails for built-in template
Built-in templates are read-only. Duplicate the template first, then edit the custom copy.
Invalid role format error
Invalid role format error
Ensure each role line follows the format:Common issues:
- Missing pipe delimiters
- Non-numeric slots value
- Empty group/emoji/role name
Custom template disappeared
Custom template disappeared
- Check if it was accidentally deleted
- Verify database integrity
- Check if template is disabled (not deleted)