client.searchMessages({
// various optional query settings:
text: 'blah', // case-insensitive substring match or fuzzy match
channel: 'foo', // limit to one channel?
author: 'bar', // limit to one author?
})
--> list or stream of matching messages, most recent first
Something like