Skip to Content
Haven Documentation is the shared home for product guides, plugin setup, and release docs.

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

FieldTypeDefaultNotes
enabledbooleanfalseEnables error forwarding after the destination is configured.
modestringwebhookMust be webhook or channel.
webhook_urlstringEmptyRequired and validated when enabled in webhook mode.
max_pendinginteger40Maximum queued reports. The oldest report is dropped when the queue is full.
max_stack_charsinteger1200Stack-preview character setting. Valid range: 1-3900; Discord field limits still apply.
max_stack_preview_linesinteger8Application stack frames shown. Valid range: 1-20.
max_root_causesinteger6Nested or aggregate causes shown. Valid range: 0-20.
include_stack_filebooleanfalseAttaches a fuller text error report.
max_attachment_charsinteger180000Safety cap for the text attachment. Minimum: 1000.
rate_limit_msinteger2000Minimum delay between Discord deliveries. Use 0 to disable the delay.
suppressed_errorsstring[]Unknown InteractionExact 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.