SoftUI.formTypes.numberPicker(min, max, disabled),
The minimum value of the number picker
The maximum value of the number picke
Indicate if the picker should be shown as disabled
Data required for getActualSet function
Number
Data returned
Number | or null
Example Usage
{
optionId: "amount_of_warn",
optionName: "Warning amount",
optionDescription: "After how many warns should I mute a user?",
optionType: SoftUI.formTypes.numberPicker(1, 10, false),
getActualSet: ({ guild }) => {
return warnAmount[guild.id];
},
setNew: ({ guild, newData }) => {
warnAmount[guild.id] = newData;
return;
},
},
Image