> ## Documentation Index
> Fetch the complete documentation index at: https://docs.assistantscenter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Roles Multiple Select

```
DBD.formTypes.rolesMultiSelect(disabled, required, includeBots, hideHigherRoles),

```

<ParamField path="disabled" type="boolean" required>
  Indicate if the select should be disabled or not.
</ParamField>

<ParamField path="required" type="boolean" required>
  Indicate if the multiple select should be required or not.
</ParamField>

<ParamField path="includeBots" type="boolean">
  Indicate if the bot roles should be included or not.
</ParamField>

<ParamField path="hideHigherRoles" type="boolean">
  Indicate if the higher roles should be hidden or not.
</ParamField>

## Data required for getActualSet function

Array of Strings (Roles IDs) | or an empty Array.

## Data returned

Array of Strings (Roles IDs) | or an empty Array.

## Example Usage

```javascript theme={null}
{
    optionId: 'multiple_welcome_roles',
    optionName: "Multiple Welcome Roles",
    optionDescription: "Select multiple roles given to user on join.",
    optionType: DBD.formTypes.rolesMultiSelect(false, true),
    getActualSet: async ({guild}) => {
        return welcomeRoles[guild.id] || []; // !
    },
    setNew: async ({guild,newData}) => {
        welcomeRoles[guild.id] = newData;
        return;
    }
},
```

<img height="200" src="https://mintcdn.com/assistantscenter/e0fzjuWUPc5-sSJC/images/formtypes/dbd-rolesmultipleselect.png?fit=max&auto=format&n=e0fzjuWUPc5-sSJC&q=85&s=043862c853db7bb5bac4a930e9af5ba6" data-path="images/formtypes/dbd-rolesmultipleselect.png" />
