Description

This is to add a role via select menu.

Trigger

(Yourprefix) (to get the embed)

BDScript Code

$nomention
$c[With the addSelectMenuOption[…] you can add as many as you want]
$description[Role menu, select a role to add!]
$newSelectMenu[menuRole;1;1;Select a role...;]
$addSelectMenuOption[menuRole;Role 1;val1;Description of role 3;no;;]
$addSelectMenuOption[menuRole;Role 2;val2;Description of role 3;no;;]
$addSelectMenuOption[menuRole;Role 3;val3;Description of role 3;no;;]

**NEW CODE BLOCK**
Trigger: $onInteraction[menuRole]

**CODE**
$nomention
$if[$customID==val1]
$roleGrant[$authorID;+ROLEID_1_HERE]
$ephemeral
Added role 1 to the user!
$removeAllComponents
$endif

$nomention
$if[$customID==val2]
$roleGrant[$authorID;+ROLEID_2_HERE]
$ephemeral
Added role 2 to the user!
$removeAllComponents
$endif

$nomention
$if[$customID==val3]
$roleGrant[$authorID;+ROLEID_3_HERE]
$ephemeral
Added role 3 to the user!
$removeAllComponents
$endif
← Back to store
Copied to clipboard!
Link copied to clipboard — share with others!