DBD.formTypes.input(placeholder, min, max, disabled, required),
Indicate if the input should be disabled or not.
Indicate if the input should be required or not.
Data required for getActualSet function
String, value to be displayed.
Data returned
String, value set | or null.
Example Usage
{
optionId: 'prefix',
optionName: "Prefix",
optionDescription: "Set bot prefix.",
optionType: DBD.formTypes.input('Prefix', 1, 4, false, false), // reqired false (if empty reset to default)
getActualSet: async ({guild}) => {
return prefixData[guild.id] || '!';
},
setNew: async ({guild,newData}) => {
prefixData[guild.id] = newData || '!';
return;
}
},