Skip to content

How can I search message in channel by specific word or type? #768

Answered by kkimwooo
kkimwooo asked this question in Q&A
Discussion options

You must be logged in to vote

I wanted to find message in current channel.

I solved problem.
I used client.search() function to find specific message.

like this

client .search( Filter.and( [ Filter.equal('cid', streamChannel!.channel.cid.toString()), ], ), messageFilters: Filter.equal('customType', 'notice'), ) .then((value) => value.results);

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kkimwooo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants