Security
Security protects your server against spam, raids, phishing links and destructive actions by moderators.
Included Submodules
Select a concrete submodule to view its settings, limits, and guidance in detail:
Security protects your server against spam, raids, phishing links and destructive actions by moderators. The module has four areas: Spam Protection, Anti-Raid (including Anti-Phishing), Anti-Nuke and Settings. Verification for new members is a separate module, see Verification.
Setup
- Enable the Security module in the dashboard.
- Open Settings and choose a Log Channel for security events. Use a private channel.
- Add the roles of your trusted team under Whitelisted Roles; members with these roles bypass all security checks.
- Enable the protections you want, starting with conservative values, and save.
- Grant DarkInk the permissions it needs (see below) and keep its role above the members and roles it manages.
Spam Protection
Each check has its own switch and an action: Timeout, Kick or Ban. For timeouts you choose the Timeout Duration (default 10 minutes).
| Check | Setting | Range (default) |
|---|---|---|
| Message Flood | Max Messages within Cooldown (seconds) | 2 to 50 messages (5) within 1 to 60 seconds (5) |
| Mention Spam | Max Mentions per message | 3 to 50 (10) |
| Sticker & Emoji Spam | Max Per Message | 1 to 50 (5) |
| GIF & Picture Spam | Max Media Messages within a time window | 2 to 50 messages (5) within 1 to 60 seconds (10) |
Anti-Raid
Anti-Raid detects many joins in a short time. Enable it and set the Join Threshold (5 to 200 joins, default 20) and the Detection Window (3 to 120 seconds, default 10). When the threshold is reached, the Raid Action is applied:
- Lockdown server: temporarily blocks sending messages, adding reactions and replying in threads for
@everyonein the text channels; the lock is lifted automatically after a few minutes. - Kick raid joins or Ban raid joins: removes the joining accounts. For bans, choose the Ban Duration (1 hour, 1 day, 7 days, 30 days or permanent).
- Quarantine raid joins: gives the joining accounts the Quarantine Role.
Min Account Age (days) (0 to 365, default 14) makes young accounts count as more suspicious. A Raid Log Channel receives an alert when a raid is detected.
Anti-Phishing
Anti-Phishing blocks fake gift-card, crypto and trade or login links while valid links to services such as Steam or Discord stay untouched. Choose the action (Delete Only, Timeout, Kick or Ban) and a Log Channel; members with a whitelisted role are exempt.
Anti-Nuke
Anti-Nuke limits how much a single moderator can destroy. It watches seven kinds of actions: Kicks & Bans, Role Creations, Role Deletions, Channel Creations, Channel Deletions, Webhook Creations and Webhook Deletions. Each has a Minute Limit (1 to 50, default 3), an Hour Limit (1 to 200, default 8) and Heat % per Action (1 to 100, default 35); reaching 100% heat also triggers the protection. A moderator who exceeds a limit is quarantined: DarkInk assigns the Quarantine Role (required, a role with all permissions denied) and logs the incident to the Anti-Nuke Log Channel.
Under Advanced:
- Panic Mode: halves the limits and doubles the heat per action.
- Strict Mode: quarantines moderators who give dangerous permissions (Administrator, Manage Roles, Ban Members) to other roles.
- Monitor Administrators: Monitor Only (Log) or Enforce Actions (Treat as User). Administrators are only enforced if DarkInk's role is higher.
- Guard Vanity URL and Monitor Member Prunes: quarantine moderators who change the vanity URL or run a prune.
- Automatic Entity Recovery: when Anti-Nuke trips, DarkInk restores channels and roles deleted by the attacker, re-assigns them to members and unbans victims. On by default.
The Whitelist exempts up to 50 trusted users and selected roles from the limits. Monitor Whitelisted Activity logs suspicious activity by whitelisted members to the Whitelist Activity Log Channel without quarantining them. The alert messages (Triggered alert and Whitelist alert) can be customized as text or embed.
Settings
- Log Channel: where security events are logged.
- Whitelisted Roles: members with these roles bypass all security checks.
- Send DM on Action: sends the member a DM before they are kicked or banned. The message supports
{server},{server.name},{user.mention},{action},{reason}and{domain}, as text or embed.
Permissions
DarkInk needs View Audit Log, Manage Roles, Manage Channels, Manage Webhooks, Moderate Members, Kick Members and Ban Members, depending on the protections you enable, plus View Channel, Send Messages and Embed Links in log channels. Its role must be above the Quarantine Role and above the members it acts on.
Example
Enable Message Flood with 5 messages in 5 seconds and the action Timeout for 10 minutes. Set Anti-Raid to 20 joins in 10 seconds with the action Quarantine raid joins and select your Quarantine role. Add your Admin and Moderator roles to Whitelisted Roles.
Troubleshooting
- A protection does not trigger: check the module and the protection switch, the whitelisted roles, and that DarkInk can see the channel.
- A member was punished unexpectedly: limits that are too low catch legitimate moderation. Raise them, add trusted roles to the whitelist and review the security log.
- Quarantine does not work: choose a quarantine role below DarkInk's role and grant Manage Roles.
- No alerts: set the matching log channel and give DarkInk Send Messages and Embed Links there.
Configuration Areas Overview
- Spam protection
- Raid detection and lockdown
- Actions, durations and account age
- Anti-Nuke thresholds and heat
- Panic mode and trusted roles
- Direct messages and security logs
- Honeypots and presentation
Dynamic Server Selections
- Channel selection: Displays text, announcement, or voice channels of the current Discord server visible to DarkInk.
- Role selection: Lists existing server roles below DarkInk's highest role for assignment or permission checks.
- Category selection: Integrates existing Discord channel categories of the server.
- Member selection: Selects members of the server for targeted permissions or exemption handling.
Input Limits & Validation
- Condition name: Maximum length: 50
- Younger than (days): Minimum: 1, Maximum: 365
- Text pattern: Maximum length: 200
- DM message: Maximum length: 500
- Channel message: Maximum length: 500
- Custom AI Instructions (optional): Maximum length: 300
- Color: Maximum length: 7
- Embed title: Maximum length: 256
- Embed description: Maximum length: 4096
- Embed footer: Maximum length: 2048
- Message: Maximum length: 2000
- Filter by User ID: Maximum length: 20
- Contains Text: Maximum length: 200
Spam Protection
Limits for message flood, mention spam, sticker and emoji spam, and GIF and picture spam.
Spam Protection Configuration
Limits for message flood, mention spam, sticker and emoji spam, and GIF and picture spam.
Security protects your server against spam, raids, phishing links and destructive actions by moderators. The module has four areas: Spam Protection, Anti-Raid (including Anti-Phishing), Anti-Nuke and Settings. Verification for new members is a separate module, see Verification.
Spam Protection
| Check | Setting | Range (default) |
|---|---|---|
| Message Flood | Max Messages within Cooldown (seconds) | 2 to 50 messages (5) within 1 to 60 seconds (5) |
| Mention Spam | Max Mentions per message | 3 to 50 (10) |
| Sticker & Emoji Spam | Max Per Message | 1 to 50 (5) |
| GIF & Picture Spam | Max Media Messages within a time window | 2 to 50 messages (5) within 1 to 60 seconds (10) |
Anti-Phishing blocks fake gift-card, crypto and trade or login links while valid links to services such as Steam or Discord stay untouched. Choose the action (Delete Only, Timeout, Kick or Ban) and a Log Channel; members with a whitelisted role are exempt.
- Log Channel: where security events are logged.
- Whitelisted Roles: members with these roles bypass all security checks.
- Send DM on Action: sends the member a DM before they are kicked or banned. The message supports
{server},{server.name},{user.mention},{action},{reason}and{domain}, as text or embed.
Enable Message Flood with 5 messages in 5 seconds and the action Timeout for 10 minutes. Set Anti-Raid to 20 joins in 10 seconds with the action Quarantine raid joins and select your Quarantine role. Add your Admin and Moderator roles to Whitelisted Roles.
Anti-Raid
Mass-join detection with join threshold, detection window, raid action and minimum account age, plus anti-phishing.
Anti-Raid Configuration
Mass-join detection with join threshold, detection window, raid action and minimum account age, plus anti-phishing.
Security protects your server against spam, raids, phishing links and destructive actions by moderators. The module has four areas: Spam Protection, Anti-Raid (including Anti-Phishing), Anti-Nuke and Settings. Verification for new members is a separate module, see Verification.
Anti-Raid
Anti-Raid detects many joins in a short time. Enable it and set the Join Threshold (5 to 200 joins, default 20) and the Detection Window (3 to 120 seconds, default 10). When the threshold is reached, the Raid Action is applied:
- Lockdown server: temporarily blocks sending messages, adding reactions and replying in threads for
@everyonein the text channels; the lock is lifted automatically after a few minutes. - Kick raid joins or Ban raid joins: removes the joining accounts. For bans, choose the Ban Duration (1 hour, 1 day, 7 days, 30 days or permanent).
- Quarantine raid joins: gives the joining accounts the Quarantine Role.
Min Account Age (days) (0 to 365, default 14) makes young accounts count as more suspicious. A Raid Log Channel receives an alert when a raid is detected.
Anti-Phishing
Anti-Phishing blocks fake gift-card, crypto and trade or login links while valid links to services such as Steam or Discord stay untouched. Choose the action (Delete Only, Timeout, Kick or Ban) and a Log Channel; members with a whitelisted role are exempt.
Enable Message Flood with 5 messages in 5 seconds and the action Timeout for 10 minutes. Set Anti-Raid to 20 joins in 10 seconds with the action Quarantine raid joins and select your Quarantine role. Add your Admin and Moderator roles to Whitelisted Roles.
Anti-Nuke
Limits for kicks, bans and role, channel and webhook changes per moderator, with quarantine, advanced protection and a whitelist.
Anti-Nuke Configuration
Limits for kicks, bans and role, channel and webhook changes per moderator, with quarantine, advanced protection and a whitelist.
Security protects your server against spam, raids, phishing links and destructive actions by moderators. The module has four areas: Spam Protection, Anti-Raid (including Anti-Phishing), Anti-Nuke and Settings. Verification for new members is a separate module, see Verification.
- Lockdown server: temporarily blocks sending messages, adding reactions and replying in threads for
@everyonein the text channels; the lock is lifted automatically after a few minutes. - Kick raid joins or Ban raid joins: removes the joining accounts. For bans, choose the Ban Duration (1 hour, 1 day, 7 days, 30 days or permanent).
- Quarantine raid joins: gives the joining accounts the Quarantine Role.
Anti-Nuke
Anti-Nuke limits how much a single moderator can destroy. It watches seven kinds of actions: Kicks & Bans, Role Creations, Role Deletions, Channel Creations, Channel Deletions, Webhook Creations and Webhook Deletions. Each has a Minute Limit (1 to 50, default 3), an Hour Limit (1 to 200, default 8) and Heat % per Action (1 to 100, default 35); reaching 100% heat also triggers the protection. A moderator who exceeds a limit is quarantined: DarkInk assigns the Quarantine Role (required, a role with all permissions denied) and logs the incident to the Anti-Nuke Log Channel.
- Panic Mode: halves the limits and doubles the heat per action.
- Strict Mode: quarantines moderators who give dangerous permissions (Administrator, Manage Roles, Ban Members) to other roles.
- Monitor Administrators: Monitor Only (Log) or Enforce Actions (Treat as User). Administrators are only enforced if DarkInk's role is higher.
- Guard Vanity URL and Monitor Member Prunes: quarantine moderators who change the vanity URL or run a prune.
- Automatic Entity Recovery: when Anti-Nuke trips, DarkInk restores channels and roles deleted by the attacker, re-assigns them to members and unbans victims. On by default.
DarkInk needs View Audit Log, Manage Roles, Manage Channels, Manage Webhooks, Moderate Members, Kick Members and Ban Members, depending on the protections you enable, plus View Channel, Send Messages and Embed Links in log channels. Its role must be above the Quarantine Role and above the members it acts on.
Enable Message Flood with 5 messages in 5 seconds and the action Timeout for 10 minutes. Set Anti-Raid to 20 joins in 10 seconds with the action Quarantine raid joins and select your Quarantine role. Add your Admin and Moderator roles to Whitelisted Roles.
- A protection does not trigger: check the module and the protection switch, the whitelisted roles, and that DarkInk can see the channel.
- A member was punished unexpectedly: limits that are too low catch legitimate moderation. Raise them, add trusted roles to the whitelist and review the security log.
- Quarantine does not work: choose a quarantine role below DarkInk's role and grant Manage Roles.
- No alerts: set the matching log channel and give DarkInk Send Messages and Embed Links there.
Configurable Settings & Options
Limit how many webhooks a moderator can create.
Limit how many webhooks a moderator can delete.
Settings
Security log channel, role whitelist and DM notification.
Settings Configuration
Security log channel, role whitelist and DM notification.
Security protects your server against spam, raids, phishing links and destructive actions by moderators. The module has four areas: Spam Protection, Anti-Raid (including Anti-Phishing), Anti-Nuke and Settings. Verification for new members is a separate module, see Verification.
- Enable the Security module in the dashboard.
- Open Settings and choose a Log Channel for security events. Use a private channel.
- Add the roles of your trusted team under Whitelisted Roles; members with these roles bypass all security checks.
- Enable the protections you want, starting with conservative values, and save.
- Grant DarkInk the permissions it needs (see below) and keep its role above the members and roles it manages.
Min Account Age (days) (0 to 365, default 14) makes young accounts count as more suspicious. A Raid Log Channel receives an alert when a raid is detected.
Anti-Phishing blocks fake gift-card, crypto and trade or login links while valid links to services such as Steam or Discord stay untouched. Choose the action (Delete Only, Timeout, Kick or Ban) and a Log Channel; members with a whitelisted role are exempt.
Anti-Nuke limits how much a single moderator can destroy. It watches seven kinds of actions: Kicks & Bans, Role Creations, Role Deletions, Channel Creations, Channel Deletions, Webhook Creations and Webhook Deletions. Each has a Minute Limit (1 to 50, default 3), an Hour Limit (1 to 200, default 8) and Heat % per Action (1 to 100, default 35); reaching 100% heat also triggers the protection. A moderator who exceeds a limit is quarantined: DarkInk assigns the Quarantine Role (required, a role with all permissions denied) and logs the incident to the Anti-Nuke Log Channel.
The Whitelist exempts up to 50 trusted users and selected roles from the limits. Monitor Whitelisted Activity logs suspicious activity by whitelisted members to the Whitelist Activity Log Channel without quarantining them. The alert messages (Triggered alert and Whitelist alert) can be customized as text or embed.
Settings
- Log Channel: where security events are logged.
- Whitelisted Roles: members with these roles bypass all security checks.
- Send DM on Action: sends the member a DM before they are kicked or banned. The message supports
{server},{server.name},{user.mention},{action},{reason}and{domain}, as text or embed.
DarkInk needs View Audit Log, Manage Roles, Manage Channels, Manage Webhooks, Moderate Members, Kick Members and Ban Members, depending on the protections you enable, plus View Channel, Send Messages and Embed Links in log channels. Its role must be above the Quarantine Role and above the members it acts on.
Enable Message Flood with 5 messages in 5 seconds and the action Timeout for 10 minutes. Set Anti-Raid to 20 joins in 10 seconds with the action Quarantine raid joins and select your Quarantine role. Add your Admin and Moderator roles to Whitelisted Roles.
- A protection does not trigger: check the module and the protection switch, the whitelisted roles, and that DarkInk can see the channel.
- A member was punished unexpectedly: limits that are too low catch legitimate moderation. Raise them, add trusted roles to the whitelist and review the security log.
- Quarantine does not work: choose a quarantine role below DarkInk's role and grant Manage Roles.
- No alerts: set the matching log channel and give DarkInk Send Messages and Embed Links there.