BotFrame
Skip to content

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.

Custom verification workflow open in the BotFrame editor

What the role gate should do

  1. Member clicks Verify
  2. Check whether the member already has the role
  3. New member: add role and confirm
  4. 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

Verification checks
CaseExpected result
First clickThe intended role is granted.
Repeated clickAccess is not removed and no different role is granted.
Unrelated buttonThe verification path does not run.
Bot below target roleAssignment fails until the role order is fixed.