Actions44
- Message Actions
- User Profile Actions
- Server Actions
- Channel Actions
- Role Actions
- Member Actions
- Presence Actions
- Invite Actions
Message → Search
AI-generatedSummary
Searches message content in a Discord channel for a specified query string, returning up to 100 matching messages with their ID, content, and author username.
Inputs
- channelId (required) — The ID of the Discord channel to search messages in.
- searchQuery (required) — The text to search for within message content (case-insensitive).
Output shape
array
An array of messages whose content matches the search query. Each entry contains messageId, content, and author fields. The operation fetches up to 100 messages from the target channel and filters them by the search query using case-insensitive substring matching on message content.
Examples
Example 1: Find messages containing 'hello' in a specific channel
Set channelId to the target channel's ID and searchQuery to 'hello'. The node returns an array of matching messages.