DBD.formTypes.multiSelect(list, disabled, required),
list
object
required

Available values: { displayName: valueReturned, displayName2: valueReturned2 }

disabled
boolean
required

Indicate if the select should be disabled or not.

required
boolean
required

Indicate if the select should be required or not.

Data required for getActualSet function

Array, list of valueReturned to be selected.

Data returned

Array, list of selected valueReturned values | or an empty Array.

Example Usage

{
    optionId: 'multiselect',
    optionName: "Multi Select",
    optionDescription: "Select MultiValues",
    optionType: DBD.formTypes.multiSelect({foo: 'bar', sam: 'ple', oh: 'oh', boo: 'oob'}, false, true),
    getActualSet: async ({guild}) => {
        return multiData[guild.id] || []; // !
    },
    setNew: async ({guild,newData}) => {
        multiData[guild.id] = newData;
        return;
    }
},