Most Discord servers are never "hacked" in the movie sense. They are damaged by an ordinary failure: a moderator clicks a fake login link, a bot with too many permissions is compromised, or a raid hits a server with no plan. The good news is that a handful of settings and habits prevent almost all of it.
This guide is ordered by impact. If you only have ten minutes, do the first four.
Key takeaways
- Protect staff accounts first. A compromised moderator does more damage than any raid.
- Replace Administrator with specific permissions on every human role.
- Vet every bot, and remove the ones you no longer use.
- Write a raid plan before you need it.
1. Require 2FA for moderation
In Server Settings → Safety Setup, turn on the requirement for two-factor authentication for moderator actions. Staff without 2FA will not be able to ban, kick, delete messages or change settings. It is the single most effective setting for protecting your server from a stolen password.
2. Stop handing out Administrator
Administrator ignores every channel permission and cannot be restricted. If an Administrator account is compromised, the attacker can do anything, including deleting every channel. Give each staff role the permissions it actually uses:
- Helpers: Timeout Members, Manage Messages, Manage Threads.
- Moderators: the above plus Kick, Ban, View Audit Log, Move and Mute Members.
- Admins: the above plus Manage Channels and Manage Roles. Only the owner and perhaps one trusted admin need Manage Server.
Use our permissions calculator to see exactly what a role can do, including the risky combinations. Discord roles explained covers role hierarchy in depth.
3. Mind the role hierarchy
A member can only manage roles below their highest role. Keep staff roles high, bots just below the roles they need to manage, and never put a self-assignable role above a staff role.
4. Vet bots before you add them
Every bot is a set of permissions held by someone else's code. Before adding one:
- Check what it asks for. Decode the invite link's permission value in the permissions calculator; a music bot does not need Ban Members.
- Prefer well-known bots with a public website, privacy policy and support server.
- Remove bots you no longer use. Abandoned bots are a common route in.
5. Set a verification level for your audience
Under Safety Setup, the verification level decides who can talk:
| Level | Requirement | Good for |
|---|---|---|
| Low | Verified email | Small, invite-only servers |
| Medium | Account older than 5 minutes | Most public servers |
| High | Member for 10 minutes | Servers that attract raids or ban evaders |
| Highest | Verified phone | Servers under repeated attack |
Most public communities should be on Medium. Move to High temporarily during a raid.
6. Turn on AutoMod
Discord's built-in AutoMod blocks spam, mass mentions, slurs and scam phrases before anyone sees them. Our AutoMod setup guide walks through every rule. At a minimum, enable mention spam with raid protection and suspected spam, and block invite links outside the channels where you allow them.
7. Filter explicit media
Set the explicit media filter to scan content from members without roles at least, or everyone if your server has members under 18. It is free protection against shock-image raids.
8. Protect members from DM scams
Most scams happen in DMs, where you cannot moderate. You can still help:
- Pin a warning that staff will never DM first asking for logins, payments or QR scans.
- Suggest members turn off DMs from server members (User Settings → Privacy).
- Block common scam phrases with AutoMod so they cannot be posted publicly either.
- Ban and report scam accounts quickly. Discord's Trust & Safety acts on reports.
9. Lock down invites
- Use invite links that expire, and limit who can create them (the Create Invite permission).
- Check Server Settings → Invites for old links shared somewhere you no longer control.
- If you have a vanity URL, know that it is public and can be used in a raid.
10. Log moderation actions
Keep a private #mod-log channel for AutoMod alerts and moderator actions, and check the Audit Log when something looks wrong. If a staff account is compromised, the log tells you what changed and what to undo.
11. Write a raid plan
When a raid starts, nobody wants to read documentation. Agree on these steps now and pin them in your staff channel:
- Pause invites (Server Settings → Invites, or the raid alert in Discord) so new accounts stop arriving.
- Raise the verification level to High.
- Add slowmode to public channels.
- Let AutoMod and moderators remove spam. Do not argue with raiders.
- Ban the raid accounts. Sort the member list by join date and remove the batch that joined together.
- Review how they got in: an old invite link, a public listing or a server that sent them.
12. Have a plan for a compromised staff account
- Remove the staff role from the account immediately (any higher-ranked staff member can).
- Check the Audit Log for what it changed: bans, deleted channels, new webhooks, role changes.
- Delete any webhooks you did not create; they can post as anyone.
- Undo the damage. If the account deleted channels, you will need to recreate them. If you built your server with a tool that keeps restore points, check that first.
- Ask the owner of the account to secure it (new password, 2FA, log out of all sessions) before restoring their role.
A short checklist
- 2FA required for moderation
- No human role has Administrator except the owner, if needed
- Staff roles above member roles, bots placed carefully
- Every bot reviewed; unused bots removed
- Verification level set for your audience
- AutoMod: mention spam, spam, invite links, flagged words
- Explicit media filter on
- Private mod log channel
- Raid plan pinned for staff
- Staff trained. See the staff onboarding checklist.
Security is not a one-off setup. Revisit this list whenever you add staff, add a bot or grow past a new milestone.