Messages · Step
Toggle role
Give the role, or take it if they have it.
Free plan
toggle_role
In a flow
“When a button is clicked, toggle a role.”
What it does
Give the role, or take it if they have it. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. Find it under Messages in the palette.
When to use it
Use it when the flow needs to give the role, or take it if they have it.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Role Role needed
-
The role.
What goes there: Type it in the side panel, or wire in a role. e.g. @Verified
If it's empty: Needed. Publish lists it until it's set or wired; the step can't run without it.
Connects fromAsk a questionCopy a roleCreate roleFind role by nameHighest roleMember detailsPersonal colour roleRead settingand 3 more