Discord Spam and Flood Protection

Configure message-rate limits and choose an appropriate response for your community.

What flood protection does

Message flood protection checks how quickly a member sends messages and can take configured actions when the message threshold is exceeded within the selected time window. It is intended to reduce rapid message bursts; it is not a complete substitute for moderator review or Discord's other safety controls.

Configure message limits

Use /setup and open Spam & Flood to review the server's settings. Administrators can also configure flood protection with:

/floodprotect enabled:true threshold:10 window_seconds:5

The example uses the default threshold of 10 messages in 5 seconds. Adjust it to your community's normal pace and choose only the actions your moderators are comfortable automating. A threshold that is too low can affect legitimate conversation.

Review mention controls, blocked words, and custom spam patterns separately in the setup wizard; they are distinct from the message-rate threshold.

Test and monitor

  1. Confirm the bot has permission to view the channel, manage messages, and perform any selected action.
  2. Set up a moderation log channel and confirm staff can access it.
  3. Test the configuration with moderators before enabling strict actions in busy channels.
  4. Review false positives and tune the threshold as your server's activity changes.

For suspicious join waves, see the Discord anti-raid guide. For known malicious images, see the image scam protection guide.