Discord Error Monitor Configuration
When dashboard-backed configuration is enabled, dashboard values may be stored in MongoDB instead of reading only the local JSON5 files.
Config Files
- Main config:
configuration/discord_error_monitor.json5 - Language config:
configuration/discord_error_monitor_lang.json5 - Plugin entry:
plugins/discord_error_monitor/main.js
Main Fields
| Field | Type | Default | Notes |
|---|---|---|---|
enabled | boolean | false | Enables error forwarding after the destination is configured. |
mode | string | webhook | Must be webhook or channel. |
webhook_url | string | Empty | Required and validated when enabled in webhook mode. |
max_pending | integer | 40 | Maximum queued reports. The oldest report is dropped when the queue is full. |
max_stack_chars | integer | 1200 | Stack-preview character setting. Valid range: 1-3900; Discord field limits still apply. |
max_stack_preview_lines | integer | 8 | Application stack frames shown. Valid range: 1-20. |
max_root_causes | integer | 6 | Nested or aggregate causes shown. Valid range: 0-20. |
include_stack_file | boolean | false | Attaches a fuller text error report. |
max_attachment_chars | integer | 180000 | Safety cap for the text attachment. Minimum: 1000. |
rate_limit_ms | integer | 2000 | Minimum delay between Discord deliveries. Use 0 to disable the delay. |
suppressed_errors | string[] | Unknown Interaction | Exact error messages skipped while Athena debug mode is off. |
Suppressed Errors
Suppression uses exact message matching. It is ignored when Athena’s debug mode is enabled so developers still receive the complete error stream while debugging.
Do not suppress broad or unfamiliar errors just to reduce noise. Fix repeated errors first, then suppress only known harmless messages.
Language Fields
discord_error_monitor_lang controls:
- Report title and color
- Type, ID, impact, registration, message, source, root-cause, and stack labels
- Unknown and missing-value text
- Yes/no labels
- Truncation suffix
- Attachment filename
embed_color accepts #RRGGBB or 0xRRGGBB. The attachment filename must
contain %id% so each report can include its error identifier.
Validation Behavior
The plugin validates both configs during startup. Invalid modes, missing webhook URLs, malformed colors, unsafe numeric values, or missing language fields disable the plugin and write the specific reason to AthenaBot’s console.
Stack previews remove AthenaBot’s current working-directory path. Full text attachments can still contain complete stack details and should be treated as sensitive.
Dashboard Configuration
Both the main settings and language file are dashboard configurable. The shipped config and dashboard templates are currently English.