Search Guild Messages endpoint allows bots to search for messages within a guild using various filters and sorting options
We've added documentation for the Search Guild Messages endpoint, which allows bots to search for messages within a guild using a variety of filters.
The endpoint supports filtering by content, author, channel, mentions, attachments, embeds, and more. Results can be sorted by timestamp or relevance.
This endpoint requires the READ_MESSAGE_HISTORY permission and the MESSAGE_CONTENT Privileged Intent.
The error code 110000 has been added to the error codes table to reflect the index-not-ready response returned when a guild has not yet been indexed for search.