Role Grant
Description
This code will add a role to the author via button.
Trigger
(yourprefix_word) (To get the embed)
BDScript Code
$nomention
$title[Claim your role]
$description[*Click the button below to claim your free role!]
$addButton[no;getRole;Get the role;secondary;no;;]
**NEW CODE BLOCK**
Trigger: $onInteraction[getRole]
**CODE**
$nomention
$roleGrant[$authorID;+roleID]
$ephemeral
Successfully added the {role} role!
$removeAllComponents
Copied to clipboard!