DBD.formTypes.channelsMultiSelect(disabled, required, channelTypes = [ChannelType.GuildText], hideNSW, onlyNSFW, hideNoAccess),
disabled
boolean
required

Indicate if the select should be disabled or not.

required
boolean
required

Indicate if the multiple select should be required or not.

channelTypes
array
required

Types of channels that should be included in the select.

hideNSW
boolean

Indicate if the NSFW channels should be hidden or not.

onlyNSFW
boolean

Indicate if the only NSFW channels should be shown or not.

hideNoAccess
boolean

Indicate if the no access channels should be hidden or not.

Data required for getActualSet function

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

Data returned

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

Example Usage

{
    optionId: 'multiple_channels',
    optionName: "Multiple Channels",
    optionDescription: "Select multiple channels from this guild.",
    optionType: DBD.formTypes.channelsMultiSelect(false, true, [ChannelType.GuildText]),
    getActualSet: async ({guild}) => {
        return multiChannels[guild.id] || []; // !
    },
    setNew: async ({guild,newData}) => {
        multiChannels[guild.id] = newData;
        return;
    }
},