/module commands directly in Discord to control what is active. Enabled/disabled state is saved to config.json and survives restarts automatically.
Module Types
Core modules are always loaded and cannot be toggled:
Optional modules are toggleable at runtime:
Commands
Manage optional modules with these slash commands:
Module names support autocomplete in Discord. Start typing and the bot suggests matching names.
All
/module commands require Administrator permission.Module State Persistence
- Enabled/disabled state is stored in
config.jsonunder theenabled_moduleskey. - State persists across bot restarts. You only need to configure it once.
- When you enable or disable a module, Freesona automatically re-syncs slash commands so Discord’s command list stays accurate.
Example Workflow
- Check what’s running. Run
/module listto see every optional module’s current enabled state and whether it is loaded in memory. - Disable a module you don’t need. Run
/module disable helloto unload thehellomodule. The bot confirms the unload and re-syncs slash commands. - Verify the change. Run
/module listagain.helloshould now show as disabled. - Re-enable it. Run
/module enable helloto load it back. Slash commands are re-synced automatically.