discord_search_messages
Search Discord server messages with filters for content, author, channel, and more to retrieve specific historical posts.
Instructions
Searches for messages in a Discord server
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| has | No | Filter messages that contain specific content types (e.g., link, embed, file, poll, image, video, sound, sticker, snapshot) | |
| limit | No | Maximum number of messages to return (default 25, max 100) | |
| maxId | No | Filter messages with IDs less than this value (messages before this ID) | |
| minId | No | Filter messages with IDs greater than this value (messages after this ID) | |
| offset | No | Number of messages to skip (for pagination) | |
| pinned | No | Filter messages based on whether they are pinned | |
| sortBy | No | Sort results by 'timestamp' or 'relevance' | |
| content | No | Search for messages containing specific text | |
| guildId | Yes | The ID of the Discord server (guild) to search within | |
| authorId | No | Filter messages by a specific user ID | |
| mentions | No | Filter messages that mention a specific user ID | |
| channelId | No | Filter messages within a specific channel ID | |
| sortOrder | No | Sort order: 'desc' for descending or 'asc' for ascending | |
| authorType | No | Filter messages by author type (user, bot, webhook) |