Discord bot modules,
explained.

What each CortexGuard module does, its default settings, and our recommended configuration for most servers. Open /config in Discord to change any of it. Anti-Raid, Anti-Spam, Anti-Mention Spam, Automod and Logs are on by default; every other module is opt-in.

← Back to home
🛡️

Security

01
antiraid

Anti-Raid

Watches join speed and reacts once too many accounts join within a short window — catching coordinated raids before they spread across your server. Safe mode (v1.5) can lock the server down instead of punishing, protecting real members during giveaways, events or viral invites. Since v1.7 it can also pause invites and DMs through Discord's incident actions (and, in safe mode, raise the verification level, restored afterwards), every sanctioned wave gets an “Undo this raid” button in the log channel, and the join risk score now reads Discord spam flags and suspicious names. Adjust it under ⚙️ Tuning.

RECOMMENDEDDefault (8 joins / 8s, kick) works well for most servers. Tighten to 5/10s on small close-knit communities; raise to 15–20/10s on large public servers with organic growth spikes, and switch to ban if raids are frequent.
02
antialt

Anti-Alt

Rejects accounts younger than a minimum age — the classic signal of throwaway or raid accounts. The length of the timeout, when that action is chosen, is adjustable since v1.7.

RECOMMENDED30 days is a solid default. Only drop to 7–14 days if you're actively getting hit by fresh-account raids; going higher starts blocking genuine new Discord users.
03
captcha

Captcha

Sends an image captcha on join (DM first, channel fallback) before granting server access, and kicks after a timeout if unsolved.

RECOMMENDED150s timeout by default. Pair it with Anti-Alt for the strongest join-time filter; only lower to ~90s on servers under heavy raid pressure.
04
atg

Anti Token Grabber

Turns specific channels into traps — any message posted there (from a token-grabber bot or otherwise) is instantly deleted and punished.

RECOMMENDEDPoint 1–3 unused channels named to look tempting to bots. Default action is kick; timeout (6h) is the safest choice, and ban is best kept until you trust it won't catch a false positive.
05
antinuke

Anti-Nuke

Tracks bursts of destructive actions (mass channel/role deletion, mass bans, webhook spam) by a single account via the audit log, and stops the offender — ban, kick, 24h timeout or role strip — before real damage spreads. With Extended detection on, v1.7 also watches thread floods, scheduled-event floods and vanity URL changes, and strips dangerous roles from the offender when the sanction leaves them in the server (⚙️ Tuning).

RECOMMENDED3 actions / 10s with ban is the strongest default — keep it as-is. Whitelist the roles of any trusted admins or bots that legitimately batch-manage channels or roles.
06
sharedban

Shared Ban

Links multiple servers into a shared ban list — a ban in one member server, however it happened, mirrors automatically to every other server in the group.

RECOMMENDEDOnly join a network with servers and staff you actually trust — a bad actor inside the group could ban people network-wide. Create a private group for your own server family, or join a public network in your niche if one exists.
07
securityscan

Security Scan

On-demand audit of your server's permission structure — dangerous @everyone permissions, excess Administrators, missing 2FA requirement, low verification level — with a graded protection score.

RECOMMENDEDRun it after any major permission or role change. Aim to clear every 🔴 Critical and 🟠 High finding first — those are what attackers actually exploit.
🧹

Content Filters

08
antispam

Anti-Spam

Tracks messages per user in a sliding time window and reacts once the rate crosses the threshold. Since v1.7 it also catches the same text repeated in one channel (long messages count after two), attachment floods and sticker floods; repeated bot commands such as !play are ignored. Thresholds, mute length and spam-wave limits live under ⚙️ Tuning; exempt channels and categories are honoured.

RECOMMENDED5 messages / 4s (mute) is safe for most chat servers. Fast-paced channels (bot commands, trading) may need 8–10/5s to avoid muting genuinely chatty members.
10
antiinvite

Anti-Invite

Removes Discord server invite links instantly, stopping advertising and scam-server links. The anti-evasion filter applies here too. Since v1.7, your own server's invites are allowed by default (switch it off under ⚙️ Tuning) and invites hidden in forwarded messages are caught.

RECOMMENDEDDelete is the safe default. Exempt any partner or affiliate channels where invites are legitimately shared.
11
antimentionspam

Anti-Mention Spam

Stops mass-mention attacks, a common raid and harassment tactic. Mentions are counted cumulatively over a time window (10s by default), so splitting pings across several messages no longer bypasses it. Can run on Discord's native AutoMod.

RECOMMENDEDThe default threshold of 5 mentions is reasonable. Lower to 3–4 on smaller servers; raise to 8–10 on large servers running active giveaway or event pings.
12
automod

Automod

A regex-powered bad-word filter, compiled once per config change so it adds zero runtime overhead to every message. Includes a toggleable anti-evasion filter (strips invisible characters and lookalike letters) and an optional native Discord AutoMod boost that blocks messages before they post. Native escalations (kick/ban) spare your staff (v1.6).

RECOMMENDEDStart from your community's specific slurs and scam keywords rather than a generic list. Add crypto-scam and phishing terms if you've been targeted before. Default action is warn, up to 1,000 words.
13
antishout

Anti-Shout

Flags messages that are excessively uppercase ("SHOUTING") once they pass a minimum length. Since v1.6 it understands accented and non-Latin letters. Exempt channels and categories are honoured (v1.7).

RECOMMENDEDThe 70% caps / 10-character minimum default avoids flagging short acronyms like "LOL" or "GG". Loosen to 85%+ on gaming servers where caps-heavy banter is normal.
14
antifile

Anti-File

Blocks risky file attachment types — executables, scripts, archives, web files — by extension — including double extensions like file.exe.png and externally linked files. 21 extensions blocked by default.

RECOMMENDEDKeep the default list as-is; it already covers the common malware-delivery formats. Only add extensions if you're seeing a specific abuse pattern.
15
antiemoji

Anti-Emoji Spam

Flags messages with an excessive number of emojis (Unicode or custom) — a common low-effort spam and flood pattern. Exempt channels and categories are honoured (v1.7).

RECOMMENDED8 emojis per message is generous enough for normal use. Drop to 5 on servers that get hit by emoji-flood spam bots.
16
antihomoglyph

Anti-Homoglyph

Catches messages that use look-alike Unicode characters (Cyrillic, Greek, full-width) to sneak past your word filter. Exempt channels and categories are honoured (v1.7).

RECOMMENDEDPair this with Automod — it exists specifically to close the bypass gap that automod alone can't catch.
⚙️

Automation

17
autoslowmode

Auto-Slowmode

Automatically raises and lowers channel slowmode based on real-time message volume, with no manual adjustment needed.

RECOMMENDEDThe defaults (15 msgs/10s trigger, 8–120s delay range) suit most general-chat channels. Leave it on and let it self-manage.
18
warnexpiry

Warn Expiry

Automatically clears warnings older than a set number of days, so an old minor infraction doesn't follow a member forever.

RECOMMENDED90 days is a fair default. Communities running a zero-tolerance policy may prefer to disable this and keep warnings permanent.
🚨

Reports

19
msgreport

Message Report

Adds a "Report to Staff" option under right-click → Apps on any message, letting members flag content directly to your mod team with a reason.

RECOMMENDEDSet a private, staff-only report channel first — the module stays off until one is configured. Leave "who can report" open to everyone unless report spam becomes an issue.
⌨️

Commands

Every command CortexGuard understands, outside of /config. Command names are also translated in each user's Discord client. Staff-only commands require the matching Discord permission (Ban Members, Kick Members, Moderate Members, or Administrator).

/config

Opens the full configuration panel covered by this Wiki — every module, every setting, all in one place. Also where you switch the bot between 10 languages (English, 中文, हिन्दी, Español, Français, العربية, Português, Русский, 日本語, Deutsch). Administrator only. Anti-Spam, Anti-Raid, Anti-Invite and Anti-Nuke have a ⚙️ Tuning button for finer settings; exempt channels sit next to exempt roles.

/mod

Moderation actions, grouped under one command:

  • /mod ban <member> [reason] [days] — bans a member, optionally deleting their last 0–7 days of messages.
  • /mod kick <member> [reason] — kicks a member from the server.
  • /mod mute <member> <duration> [reason] — times out a member for up to 7 days.
  • /mod unmute <member> — removes an active timeout.
  • /mod warn <member> <reason> — logs a warning against a member.
  • /mod warnings <member> — lists a member's warning history.
  • /mod clearwarnings <member> — wipes a member's warnings.
  • /mod unban <user ID> [reason] — unbans a user by their Discord ID.
  • /mod purge <amount> [member] — bulk-deletes up to 100 messages, optionally filtered to one member.
/history <member>

Full sanction history for a member — bot-tracked actions, manual actions from Discord's own audit log, and a shared-ban network lookup. Shown privately to the staff member who ran it.

/info [member]

Shows account and server-join information for a member — yourself if none is given. Warnings are only shown to staff and info roles.

/lockdown

Toggles lockdown on the current channel, instantly blocking @everyone from sending messages. Requires Manage Channels.

/raidpanic <on|off>

Emergency button: on locks every text channel at once, off restores only the channels raid panic locked. Requires Manage Server. Anti-Raid safe mode can trigger it automatically. Depending on Anti-Raid ⚙️ Tuning it also pauses invites and DMs and raises the verification level; off puts back only what it changed.

/snapshot save | list | restore [number]

Persistent copies of your server structure: roles (permissions, position, members) and channels (permission overwrites, categories). Taken automatically every 3 hours when enabled in /config → Anti-Nuke (on by default); 4 versions kept. restore recreates what is missing and never touches what exists. Requires Administrator.

/undo-raid [number]

Without a number, lists the latest detected raids. With a raid ID, reverses its sanctions: unbans and removes timeouts. Raid records are kept 7 days. Requires Moderate Members. The log message of each sanctioned wave also has an Undo button (Ban Members or Administrator).

/save

Saves this server's configuration to your personal profile (server owner only).

/restore

Restores your saved profile onto this server (server owner only). Asks for confirmation first (v1.6); restored mod and whitelist roles cannot be hijacked by look-alike roles. Channel and role IDs aren't transferred — those stay server-specific, as do shared-ban links and native AutoMod rules. Profiles unused for 365 days are deleted.

/report <message>

Sends a bug report or issue directly to the CortexGuard developer — limited to one per hour. Not for reporting server members, see below.

Right-click a message → Apps → Report to Staff

Lets any member flag a message to your staff team with a reason. Requires the Message Report module to be configured — see the Reports category above.