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

# Channels Select

```
DBD.formTypes.channelsSelect(disabled, channelTypes = [ChannelType.GuildText], hideNSW, onlyNSFW, hideNoAccess),),
```

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

<ParamField path="channelTypes" type="array" required>
  Types of channels that should be included in the select.
</ParamField>

<ParamField path="hideNSW" type="boolean">
  Indicate if the NSFW channels should be hidden or not.
</ParamField>

<ParamField path="onlyNSFW" type="boolean">
  Indicate if the only NSFW channels should be shown or not.
</ParamField>

<ParamField path="hideNoAccess" type="boolean">
  Indicate if the no access channels should be hidden or not.
</ParamField>

## Data required for getActualSet function

String, channel ID.

## Data returned

String, channel ID | or null.

## Example Usage

```javascript theme={null}
{
    optionId: 'welcome_channel',
    optionName: "Welcome channel",
    optionDescription: "Select welcome message channel on this guild.",
    optionType: DBD.formTypes.channelsSelect(false, [ChannelType.GuildText]),
    getActualSet: async ({guild}) => {
        return welcomeChannel[guild.id];
    },
    setNew: async ({guild,newData}) => {
        welcomeChannel[guild.id] = newData;
        return;
    }
},
```

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