搜索

搜索消息

GET /api/search/messages

在用户有权限访问的服务器和频道中搜索消息。

参数类型必填说明
querystring搜索文本
serverIdstring限定到特定服务器
channelIdstring限定到特定频道
fromstring按作者用户 ID 筛选
hasAttachmentboolean仅包含附件的消息
limitnumber最大结果数
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