SoftUI.formTypes.slider(min, max, step, disabled),
min
number
required

The minimum value of the slider

disabled
number
required

The maximum value of the slider

step
number
required

What value the slider should go up in

disabled
boolean
required

Indicate if the slider should be shown as disabled

Data required for getActualSet function

Number

Data returned

Number | or null

Example Usage

{
    optionId: "percentage_ram",
    optionName: "Max RAM usage",
    optionDescription: "At which RAM usage should I create an alert?",
    optionType: SoftUI.formTypes.slider(0, 100, 1, false),
    getActualSet: ({ guild }) => {
      return alertRAM[guild.id];
    },
    setNew: ({ guild, newData }) => {
      alertRAM[guild.id] = newData;
      return;
    },
},

Image