SoftUI.formTypes.numberPicker(min, max, disabled),
min
number
required

The minimum value of the number picker

disabled
number
required

The maximum value of the number picke

disabled
boolean
required

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