Narrow a search
Filter results by person, conversation, date, threads, files, links and reactions, and change the order.
You can narrow a search in two ways that do the same thing: click a filter above the results, or type a modifier in the search field. A filter writes its modifier into the field, so you can see and change it.
Filters
Above the results:
- From: messages from one person. Anyone clears it.
- In: one conversation. All conversations clears it. See Search a DM or channel.
- Date: messages after and before a date, picked on a calendar.
- In a thread: only thread replies.
- Has file: only messages with a file or image.
- Has link: only messages with a link.
- Has reaction: only messages someone reacted to.
Click a filter again to turn it off.
On a phone, the filters wrap onto several lines. They are the easiest way to narrow a search there, since a colon is awkward to type on a phone keyboard.
Sort
The sort button is next to the filters:
- Newest (the default): the most recent first.
- Oldest: the oldest first.
- Most relevant: the best matches first.
Modifiers you can type
| Type | Finds |
|---|---|
budget plan |
messages with both words |
"budget plan" |
the exact phrase |
budget -draft |
messages with “budget” but not “draft” |
from:@ana |
messages from Ana. from:@me is you |
-from:@ana |
messages from anyone but Ana |
in:#design, in:@ana |
messages in that channel or DM |
-in:#random |
everywhere but that conversation |
before:2025-03-01 |
messages before that day |
after:yesterday |
messages after that day |
on:today |
messages from that day |
during:november |
messages in that month or year (during:2025) |
is:thread |
thread replies |
has:file |
messages with a file or image |
has:link |
messages with a link |
has:reaction |
messages with any reaction |
has::thumbsup: or has:👍 |
messages with that reaction |
Dates can be written as 2025-03-01, or in English words: today, yesterday, last week, a month such as november, or a year. Put words with a space in quotes: after:"last week".
If the app doesn’t understand a modifier, the results say what was left out, for example “Left out, not understood: is:saved”.
Things to know
- Public channels need words. A search with only filters (for example just
from:@ana) finds messages in DMs and private channels, but not in public channels: the results say Public channels are searched for words: add a word. - Has reaction leaves out public channels. The server doesn’t search reactions, so with Has reaction or
has:an emoji, the results say Public channels cannot be searched by reaction yet. - Read more in What search finds.