discord_mod_purge_messages
Purge messages from a Discord channel by filtering based on author, content, or attachments. Scans and bulk-deletes matching messages.
Instructions
Purges messages from a channel with filters (by user, content, attachments). Scans and bulk-deletes matching messages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Snowflake ID: only delete messages after this | |
| limit | No | Max messages to scan (1-1000, default 100) | |
| before | No | Snowflake ID: only delete messages before this | |
| authorId | No | Only delete messages from this user ID | |
| contains | No | Only delete messages containing this text | |
| channelId | Yes | The ID of the channel to purge from | |
| hasAttachment | No | Only delete messages with attachments |