Loading

Back to Home

$addRoleSelect

$addRoleSelect adds a role select menu to an action row. Role select menus let users pick one or more roles from a list.

Syntax

$addRoleSelect[Select Menu ID;Placeholder;Min Values;Max Values;Disabled;Action Row ID]

What happens

  1. $addRoleSelect creates a role select menu on the specified action row.
  2. When clicked, it opens a list of server roles to choose from.
  3. The selected role IDs can be used in your command trigger.

Example 1: Single role select

$addActionRow[actions]
$addRoleSelect[pickRole;Choose a role;1;1;;actions]
Result: Role select example

What happens:

  1. $addActionRow creates an action row.
  2. $addRoleSelect adds a role select menu that lets users pick one role.

The menu shows "Choose a role" as placeholder text.

Example 2: Multi-select with no placeholder

$addActionRow[actions]
$addRoleSelect[pickRoles;;1;5;;actions]
Result: Role multi-select example

What happens:

  1. $addActionRow creates an action row.
  2. $addRoleSelect adds a role select menu that lets users pick up to five roles.

The menu has no placeholder text and allows multiple selections.

Common uses

See also