Elementium Sign in
Contents

Messages · Step

Search messages

Find recent messages in a channel that contain some words or come from someone.

Basic plan message.search

In a flow

“When a button is clicked, search messages.”

/find-links @Sam → Search messages from Sam containing https:// → Reply with the count.

What it does

Find recent messages in a channel that contain some words or come from someone. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 4 values later steps can use. Find it under Messages in the palette.

When to use it

Use it when the flow needs to find recent messages in a channel that contain some words or come from someone.

When not to

If nothing should change in Discord, a value node or a check is lighter.

Typical wiring

Sockets: settings you can wire

Channel Channel

Where to look. Empty is here.

What goes there: Type it in the side panel, or wire in a channel. e.g. #general

If it's empty: Optional. Left empty and unwired, the step runs without it.

Connects fromArchive channelAsk a questionCopy channelCopy permissionsCreate categoryCreate channelCreate forum postCreate threadand 60 more

Containing Text

Words it has, like a link. Empty is any. Variables allowed.

What goes there: Type it in the side panel, or wire in text. e.g. Hello there

If it's empty: Optional. Left empty and unwired, the step runs without it.

Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 844 more

From Member

Only theirs. Leave unwired for anyone.

What goes there: Type it in the side panel, or wire in a member. e.g. @Alex

If it's empty: Optional. Left empty and unwired, the step runs without it.

Connects fromAccept applicationApplication infoAsk a questionAsk follow-upBoard as emojiCall the next in the queueCase createdCheck for a lineand 87 more

Look through Number

The newest messages to look through, up to 200.

What goes there: Type it in the side panel, or wire in a number. e.g. 42

If it's empty: Optional. Left empty and unwired, it uses 100.

Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 500 more

Values it gives

Found Number

How many matched. e.g. 3

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 718 more

Newest Message

The newest match. e.g. a link to the message

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAttached filesCancel giveawayClear reactionsDelete and warnDelete messageDelete message laterEdit messageEdit to layoutand 577 more

Links List

Links to each match, newest first. e.g. ["https://discord.com/channels/…"]

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAdd onboarding questionAdd to listAdd up timesAutoMod: add or remove allowed wordsAutoMod: add or remove wordsAutoMod: block wordsBar chartBest by a fieldand 88 more

As text Text

The matches, one a line, cut short. e.g. Sam: check this https://…

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 577 more

Often next

Related in Messages

Wires and sockets · Data values · Plans