🎭
Add Role Picker
ui.select.roleThe Control PanelControlsAdds a dropdown Discord fills with the server's roles. The chosen role ID comes back as {{component.value}} — perfect for self-serve role menus.
When to use this
- →Feed {{component.value}} straight into Add Role for a self-serve role menu
On the canvas
This is what Add Role Picker looks like when you place it on your flow. Each field below is something you configure in the inspector panel.
🎭Controls
Add Role Picker
ui.select.rolecustomIdrequired
pick_role
placeholder
Choose a role…
minValues
1
maxValues
1
disabled
boolean…
output
error
Config fields
| Field | Type | Req | What it does |
|---|---|---|---|
customIdpick_role | text | yes | Custom id 🏷️ |
placeholderChoose a role… | text | — | Placeholder text 💬 |
minValues1 | number | — | Fewest they can pick 🔢 |
maxValues1 | number | — | Most they can pick 🔢 |
disabled | boolean | — | Start greyed out 🚫 |
Output ports
outputRole picker staged
errorMissing a custom id
📐
In TypeScript, this would be…
Not something you need to write — just a look at what Kitcord does for you.
TypeScript
const menu = new RoleSelectMenuBuilder()
.setCustomId("pick_role")
.setPlaceholder("Choose a role…");More Controls pieces