DBD.formTypes.input(placeholder, min, max, disabled, required),
placeholder
string
required

Input placeholder.

min
number
required

Minimum length.

max
number
required

Maximum length.

disabled
boolean
required

Indicate if the input should be disabled or not.

required
boolean
required

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;
    }
},