Storage · Step
Clear a leaderboard
Delete every score of a leaderboard to start a new season. The old winners come back first so you can reward them.
board.reset
In a flow
“When a button is clicked, clear a leaderboard.”
Weekly → Clear a leaderboard weekly.
What it does
Delete every score of a leaderboard to start a new season. The old winners come back first so you can reward them. 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 Storage in the palette.
When to use it
Use it to keep something between runs: delete every score of a leaderboard to start a new season. The old winners come back first so you can reward them.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Leaderboard Text
-
Its name, like weekly or trivia.
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, it uses weekly.
Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 844 more
- Winners to return Number
-
How many top members to give back before it clears.
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 3.
Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 500 more
- I understand Yes / no
-
Every score is deleted for good.
What goes there: Type it in the side panel, or wire in true or false. e.g. true
If it's empty: Optional. Left alone, it's off.
Connects fromAdd a labelAdd to a leaderboardAge from birthdayAI check a messageAnagram checkAndAnswer a deadlineAnti-nuke guardand 270 more
Values it gives
- Winners List
-
The top members' IDs, best first. e.g. ["123"]
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
- Scores cleared Number
-
How many were deleted. e.g. 40
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