SoftUI.formTypes.tagInput(disabled),
disabled
boolean
required

Indicate if the input should be shown as disabled

Data required for getActualSet function

Array of Strings | or an empty Array.

Data returned

Array of Strings | or an empty Array.

Example Usage

{
    optionId: "allowed_tags",
    optionName: "Allowed Tags",
    optionDescription: "Which tags are allowed?",
    optionType: SoftUI.formTypes.tagInput(false),
    getActualSet: ({ guild }) => {
      return allowedTags[guild.id];
    },
    setNew: ({ guild, newData }) => {
      allowedTags[guild.id] = newData;
      return;
    },
},

Image

Was this page helpful?