Custom recipe · Free-compatible
A button that grants a specific role.
Use a button interaction to give a member a narrowly scoped role. This is a custom workflow recipe, not one of the six setup templates, and a click does not prove someone’s identity.

What the role gate should do
- Member clicks Verify
- Check whether the member already has the role
- New member: add role and confirm
- Existing member: reply without changing access
Example interaction
- Member action
A member clicks Verify- Bot behavior
- Adds the configured verified role if missing and confirms the result.
Decide what access the role grants
- Create the intended role in Discord first. Review its channel permissions; do not give it administrative powers.
- Keep the verification channel visible to people who do not yet have the role.
- Use the same Custom ID on the posted button and its interaction trigger.
- Place the bot’s role above the target role and grant the bot Manage Roles.
Verification means a click, not identity proof
This pattern is suitable for an explicit acknowledgement before opening channels. It does not verify age, payment, identity or external account ownership. The self-serve role template is also not a substitute: it toggles a Notifications role rather than granting a permanent verified role.
Check the access boundary
| Case | Expected result |
|---|---|
| First click | The intended role is granted. |
| Repeated click | Access is not removed and no different role is granted. |
| Unrelated button | The verification path does not run. |
| Bot below target role | Assignment fails until the role order is fixed. |