Elementium Sign in
Contents

Server · Step

Clean up invites

Delete the invite links nobody used, older than some days.

Basic plan invite.prune

In a flow

“When a button is clicked, clean up invites.”

Every week → Clean up invites unused for 7 days.

What it does

Delete the invite links nobody used, older than some days. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 1 value later steps can use. Find it under Server in the palette.

When to use it

Use it when the flow changes the server itself: delete the invite links nobody used, older than some days.

When not to

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

Typical wiring

Sockets: settings you can wire

Unused and older than (days) Number

Delete invites that nobody used and that are older than this.

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

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

Deleted Number

How many went. e.g. 14

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

Often next

Related in Server

Wires and sockets · Data values · Plans