Starts when · Starts a flow
When someone joins with an invite
A member joins and the bot works out which invite they used. Needs the Server Members intent and Manage Server.
events.invite_used
In a flow
“When someone joins with an invite, the steps wired after it run.”
Thank whoever invited them, or count invites per member.
What it does
A member joins and the bot works out which invite they used. Needs the Server Members intent and Manage Server. It starts a flow, and gives the steps after it values about what happened. It gives 6 values later steps can use. Find it under Starts when in the palette.
When to use it
Use it to start a flow when someone joins with an invite.
When not to
If the flow should start from a click or a command instead, pick that trigger: a flow has exactly one.
Typical wiring
Values it gives
- Who joined Member
-
The member who just joined. e.g. @Sam
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toA member's variablesAdd a labelAdd a staff noteAdd answer to formAdd to a counterAdd to a leaderboardAdd to threadAdd to ticketand 648 more
- Where Channel
-
This doesn't happen in a channel, so this is empty. e.g. #general
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 a forum tagAdd to threadAge-restrict a channelAI summary of a channelAnti-nuke guardArchive channelArchive or lock threadAsk a questionand 640 more
- Who invited them Member
-
The person who made the invite they used. Empty if it isn't known. e.g. @Alex
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toA member's variablesAdd a labelAdd a staff noteAdd answer to formAdd to a counterAdd to a leaderboardAdd to threadAdd to ticketand 648 more
- Invite code Text
-
The code of the invite they used. Empty if it couldn't be worked out. e.g. abc123
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
- Times used Number
-
How many times that invite has been used, this join included. e.g. 12
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 719 more
- Invite known Yes / no
-
False when it couldn't be worked out: a vanity link, two joins at once, or the first join after the bot restarts. e.g. true
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 a forum tagAdd onboarding questionAdd to a counterAlarms that are dueAndAutoMod: Discord's word listsBluesky latest postBoard as emojiand 573 more