Search

Search messages

GET /api/search/messages

Search across messages in servers and channels the user has access to.

ParamTypeRequiredDescription
querystringYesSearch text
serverIdstringNoLimit to a specific server
channelIdstringNoLimit to a specific channel
fromstringNoFilter by author user ID
hasAttachmentbooleanNoOnly messages with attachments
limitnumberNoMax results
const results = await client.searchMessages({
  query: 'deployment',
  serverId: 'server-id',
  limit: 20,
})
results = client.search_messages(
    query="deployment",
    server_id="server-id",
    limit=20,
)
ON THIS PAGE