> ## 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 Select

```
DBD.formTypes.rolesSelect(disabled, includeBots, hideHigherRoles),
```

<ParamField path="disabled" type="boolean" required>
  Indicate if the select should be disabled 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

String, role ID.

## Data returned

String, role ID | or null.

## Example Usage

```javascript theme={null}
{
    optionId: 'welcome_role',
    optionName: "Welcome role",
    optionDescription: "Select role given to user on guild join.",
    optionType: DBD.formTypes.rolesSelect(false),
    getActualSet: async ({guild}) => {
        return welcomeRole[guild.id];
    },
    setNew: async ({guild,newData}) => {
        welcomeRole[guild.id] = newData;
        return;
    }
},
```

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