DBD.formTypes.textarea(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 textarea should be disabled or not.

required
boolean
required

Indicate if the textarea 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: 'longtext',
    optionName: "Message on member join.",
    optionDescription: "Set message on member join.",
    optionType: DBD.formTypes.textarea('Set message on member join...', null, 100, false, false), // reqired false (if empty reset to default)
    getActualSet: async ({guild}) => {
        return welcomeData[guild.id];
    },
    setNew: async ({guild,newData}) => {
        welcomeData[guild.id] = newData || null;
        return;
    }
},