Data tables · Step
Top rows
The rows with the highest (or lowest) of a value, like a points leaderboard.
table.top
In a flow
“When a button is clicked, top rows.”
/leaderboard → Top rows of points by points → Reply with As text.
What it does
The rows with the highest (or lowest) of a value, like a points leaderboard. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 2 values later steps can use. Find it under Data tables in the palette.
When to use it
Use it to keep rows of data, like a spreadsheet: the rows with the highest (or lowest) of a value, like a points leaderboard.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- How many Number
-
The top few.
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 501 more
Values it gives
- Rows List
-
The rows, each an object with its key as _key. e.g. [{"_key": "123…", "level": 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 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
-
One line each: place, key and value. A key that's a member ID shows as a mention. e.g. 1. <@123…> 120
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