> For the complete documentation index, see [llms.txt](https://discortics.com/llms.txt). A consolidated single-file corpus is available at [llms-full.txt](https://discortics.com/llms-full.txt). Markdown versions of documentation and comparison pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://discortics.com/guides/automod-flood.md).

# Flood Protection

Use [Spam Protection](/guides/automod-spam) for rapid activity across several messages. See [Automoderation](/guides/autopilot) for permissions.

## Set up Flood Protection

### Dashboard Setup

1. Open **Dashboard → Moderator → AntiFlood**.
2. Enable the protection.
3. Set the character, emoji, and duplicate limits.
4. Add any exceptions and choose your punishments.
5. Save and test with harmless examples.

### Discord Command Setup

1. Run `/autopilot antiflood`.
2. Select **Enable**.
3. Set the three limits.
4. Review exceptions and **Punishments**.
5. Test from a non-administrator account.

## Settings

| Setting                   | Range     | Default | What it does                                              |
| ------------------------- | --------- | ------: | --------------------------------------------------------- |
| **Character Limit**       | 250–4,000 |   1,500 | Longest message allowed                                   |
| **Emoji Limit**           | 5–2,000   |       8 | Most Unicode and custom emoji allowed                     |
| **Duplicate Sensitivity** | 1–10      |       3 | Higher values catch more repeats and more false positives |

One large message or several smaller messages in a burst can trigger the protection.

## Exceptions

Ignored users, roles, and channels bypass Flood Protection.

## Punishments

Detected messages are deleted and your [punishment steps](/guides/autopilot#punishments) run once per burst. Start with Warn while you check whether long posts, art, code, or announcements need an exception.

## Troubleshooting

**Normal long messages are removed.** Raise the character limit or ignore the channel used for long posts.

**Emoji art is removed.** Raise the emoji limit or ignore the art channel.

Compare plans and capabilities on the [Discord AutoMod & Anti-Raid overview](/features/autopilot).
