Detection System
TrueAudit's Detection System allows you to schedule daily scans for suspicious or unusual activity and get alerted when certain audit events pass configured thresholds. Perfect for monitoring large-scale deletions, role changes, bans, and more.
/setdetection <channel> <hour> <minute>
/setdetection <channel> <hour> <minute>
Set when and where your serverβs daily detection scans should run.
channel
β The channel to send alerts tohour
β Hour of the day (0β23) based on your server's timezoneminute
β Minute of the hour (0β59) π Permissions Required: Administrator & Manage Server
β Once configured, TrueAudit will perform a scan every day at the time you choose and post alerts to the selected channel.
/setdetectionrule <event_type> <level> [role]
/setdetectionrule <event_type> <level> [role]
Create a new detection rule for a specific audit event.
event_type
β Type of action to monitor (e.g. message delete, role update)level
β Sensitivity threshold (low
,medium
, orhigh
)role
(optional) β Role to mention when this rule triggers π Permissions Required: Administrator & Manage Server π§ Includes autocomplete for event names and level selection.
β Example:
/removerule <rule_id>
/removerule <rule_id>
Remove an existing detection rule using its ID.
rule_id
β Found in/detectionrules
π Permissions Required: Administrator & Manage Server
/detectionrules
/detectionrules
View all configured detection rules for your server.
Each rule shows:
Rule ID
Event being monitored
Threshold level
Role that will be pinged (if any)
β±οΈ How Detection Works (Behind the Scenes)
Every minute, TrueAudit checks whether any servers are scheduled to run a detection scan at that moment based on their configured time and timezone.
If a scan is due:
It looks through the past 24 hours of logged audit events
Compares activity counts against the thresholds set for each event type (low, medium, high)
If a threshold is crossed:
It sends a clean, detailed embed listing which events were triggered
It optionally pings any roles attached to the triggered rules
This system runs entirely in the background and is optimized for performance. Youβll only be notified if something meaningful happened β no noise, just signal.
π Example Alert
π Daily Audit Detection Here are notable event spikes in the last 24h:
@ModAlerts
A detection rule was triggered for this event. Check your settings or respond if needed.
π§ Why Use Detection?
Catch mass events (like someone deleting lots of messages or banning multiple users)
Proactively detect issues before they're reported
Add an early warning system to your moderation toolkit
Reduce the need to constantly check audit logs manually
With customizable thresholds and alerts, youβll always know when something serious is happening β even if youβre not online.
Last updated