Reload Config
Overview
The /reload-config command reloads the bot's configuration from the config.json file without requiring a full bot restart. This allows you to apply configuration changes instantly.
Command Details
Permissions Required
User:
ADMINISTRATORpermissionBot:
SEND_MESSAGES,EMBED_LINKS
Command Syntax
/reload-configNo parameters required. Response is ephemeral (only visible to you).
Features
1. Live Reload
Reloads configuration without restarting bot
Applies changes immediately
No downtime required
2. Validation
Validates configuration file format
Reports errors if config is invalid
Shows what changed
3. Timestamps
Shows previous load time
Shows new load time
Confirms successful reload
4. Note: No Automated Diff Summary
Not produced by this command. The
/reload-configcommand confirms a successful reload and shows timestamps, but it does not compute or display a diff of configuration changes. To see what changed, compare the savedconfig.jsonin version control or run/configbefore/after to inspect differences.
Usage Example
Response includes:
✅ Success confirmation
Previous load time
New load time
Note: The command does not include an automated summary of config diffs. Use /config or your version control diff to review changes.
How It Works
Read File: Loads
config.jsonfrom diskValidation: Parses and validates JSON structure
Application: Replaces in-memory configuration
Confirmation: Reports success/failure
When to Use
Use reload-config for:
Channel ID changes
Role ID changes
Feature flag toggles
XP/leveling setting changes
Text content changes
Requires full restart for:
Token changes
Database connection changes
Redis connection changes
Major structural changes
Configuration Changes That Apply Immediately
Channel configurations
Role configurations
Leveling system settings
Feature flags
Content strings
Thresholds and limits
Related Commands
Use Cases
Quick fixes: Correct channel/role IDs
Feature toggles: Enable/disable features
Tuning: Adjust XP rates, cooldowns
Content updates: Change messages, embeds
Best Practices
Backup first: Keep a copy of working config
Validate JSON: Use JSON validator before reloading
Test in staging: Test changes in dev environment first
Document changes: Note what you changed and why
Use version control: Track config changes in Git
Error Handling
If reload fails:
Invalid JSON: Fix syntax errors in config.json
Missing required fields: Add required configuration
Invalid values: Correct value types/formats
The bot terminates if the reload encounters invalid JSON or missing required fields
Tips
Use
/configbefore and after to verify changesMake one change at a time for easier troubleshooting
Keep a backup of
config.jsonDocument your changes in comments or separate doc
Test thoroughly after reloading
If in doubt, use
/restartinstead for full reload
Emergency Rollback
If reload breaks something:
Have backup
config.jsonreadyReplace current config with backup
Run
/reload-configagainOr use
/restartif reload-config fails
Example Workflow
Backup current
config.jsonEdit
config.jsonwith changesValidate JSON syntax
Save file
Run
/reload-configRun
/configto verifyTest affected features
Document changes
Last updated
Was this helpful?