DBD.formTypes.colorSelect(defaultState, disabled),
defaultState
string
required

Default state HEX color.

disabled
boolean
required

Indicate if the select should be disabled or not.

Data required for getActualSet function

String, actual set HEX color.

Data returned

String, new HEX color.

Example Usage

{
    optionId: 'welcome_embed_color',
    optionName: "Welcome Embed Color",
    optionDescription: "Set embed color on member join.",
    optionType: DBD.formTypes.colorSelect('#fff000', false),
    getActualSet: async ({guild}) => {
        return welcomeColorData[guild.id];
    },
    setNew: async ({guild,newData}) => {
        welcomeColorData[guild.id] = newData || null;
        return;
    }
},