← Home

GUIDE · SECURITY

What to do if your Discord server was hacked

Channels were deleted, everyone was banned, or scam links are being posted in the server. Don't panic; usually the cause is a compromised staff account or an over-permissioned bot. Follow the order below.

1. Secure the owner account

If you're the server owner, change your password right away and turn on two-factor authentication (2FA). Log out sessions you don't recognize in User Settings › Devices, and remove apps you don't recognize from Authorized Apps. If you can't log in at all, contact Discord support.

Accounts are usually stolen with "scan this QR code", "Nitro gift" or "can you try my game" files; warn your staff about these too.

2. Cut off the attacker's permissions

In Server Settings › Audit Log, check who made the deletions and bans. Take that person's or bot's role, and kick them from the server if needed. In Integrations, delete bots and webhooks you don't recognize; scam messages are often posted by a webhook. Turn off Administrator on suspicious roles.

3. Figure out what's gone

The audit log shows deleted channels, roles and banned members. If Groyt's log system was on, the log channel shows in detail who did what. When lifting mass bans, Groyt's mass unban tool speeds things up.

/security massunban · sample view

4. Rebuild the structure

Groyt's automatic backup keeps a complete list of the channel, category and role structure; refer to it while rebuilding. If starting from scratch is easier, you can build the skeleton in seconds with a ready template. Messages don't come back; no bot can do that.

5. Never again

  • Give staff only the permissions they need; don't hand out Administrator easily.
  • Turn on the 2FA requirement for moderation actions in Server Settings › Safety Setup.
  • Turn on Groyt's anti-nuke protection: an account that deletes many channels or roles or mass bans in a short time loses its permissions.
  • The honeypot trap channel catches compromised accounts on their first message.
/security status · sample view

Summary: the first 15 minutes

  1. Password + 2FAChange the owner account's password, turn on 2FA, log out other sessions.
  2. Cut off permissionsTake the attacker's role, delete suspicious bots and webhooks.
  3. Check the logsFigure out what's gone from the audit log and log channel.
  4. Take precautionsTurn on anti-nuke, reduce permissions, require 2FA for moderation.

FAQ

Do deleted messages come back?

No. Discord doesn't bring back deleted messages, and no bot can either. You can rebuild the channel and role structure by looking at a backup.

Discord'a bildirmeli miyim?

Yes. Report the compromised account and scam messages through Discord's support and report page.

Can it happen with anti-nuke on?

Anti-nuke greatly limits the damage: it takes away the attacker's permissions after the first few actions. But if the owner account is stolen, no bot can stop the owner; that's why 2FA is a must.

All in one bot.
Add Groyt to your server.