Form Types
Color Select
DBD.formTypes.colorSelect(defaultState, disabled),
defaultState
string
requiredDefault state HEX color.
disabled
boolean
requiredIndicate 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;
}
},
Was this page helpful?