Elementium Sign in
Contents

Messages · Step

Get recent messages

Read the newest messages in a channel, up to 50.

Free plan message.recent

In a flow

“When a button is clicked, get recent messages.”

Get the last 10 messages and count how many were from bots.

What it does

Read the newest messages in a channel, up to 50. 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 read the newest messages in a channel, up to 50.

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

The channel to read. Leave empty for here: where this happened, or the new place in an "In the new …" branch.

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

How many Number

The newest messages to read, up to 50.

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 10.

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

Messages list:message

The messages, newest first. e.g. a link to the message, and more like it

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

Authors list:member

Who wrote each one, in the same order (repeats kept). e.g. @Alex, and more like it

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

Count Number

How many it read. e.g. 10

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

As text Text

One line per message: who wrote it and what it says (text needs Message Content). e.g. Sam: hi

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 578 more

Shortcuts

Often next

Related in Messages

Wires and sockets · Data values · Plans