Configuration
All plugin options and environment variables.
Configure the plugin by creating a config file at config/plugins/robojs/dev.mjs or by passing options inline in your Robo config.
Plugin options
export default {
debugChannelId: '1234567890123456789',
errorPingRoleId: '987654321098765432',
commands: true,
errorForwarding: true
}export default {
debugChannelId: '1234567890123456789',
errorPingRoleId: '987654321098765432',
commands: true,
errorForwarding: true
}Prop
Type
Environment variables
| Variable | Description |
|---|---|
DISCORD_DEBUG_CHANNEL_ID | Fallback channel ID for error forwarding. The debugChannelId config option takes priority. |
DISCORD_DEBUG_CHANNEL_ID=1234567890123456789Inline configuration
You can also pass options directly in your Robo config:
export default {
plugins: [
['@robojs/dev', {
debugChannelId: '1234567890123456789',
errorPingRoleId: '987654321098765432'
}]
]
}export default {
plugins: [
['@robojs/dev', {
debugChannelId: '1234567890123456789',
errorPingRoleId: '987654321098765432'
}]
]
}Production behavior
The plugin includes a build transform hook that automatically removes all dev plugin entries from production builds. When you run robo build, every command, event handler, and hook from this plugin is stripped from the output.
This means you don't need to manually uninstall the plugin before deploying. The plugin safely disappears on its own.
