Developer

Configuration examples

A complete settings schema, field explanations and compatibility checks.

A complete settings schema

Use an object named settings, not an array named fields.

{
  "version": 1,
  "settings": {
    "welcome_channel": {
      "type": "channel",
      "label": "Welcome channel",
      "description": "Discord channel ID where the bot posts greetings. The bot needs View Channel and Send Messages.",
      "required": true,
      "editable": true,
      "category": "Welcome"
    },
    "welcome_text": {
      "type": "textarea",
      "label": "Greeting",
      "description": "Text your implementation sends to a new member. Variable substitution must be implemented by the flow or code that reads it.",
      "default": "Welcome!",
      "editable": true,
      "category": "Welcome"
    },
    "enabled": {
      "type": "boolean",
      "label": "Enable greetings",
      "default": true,
      "editable": true
    }
  }
}

Adapt without breaking buyers

Keep the keys when changing labels. A renamed key is a new setting and does not automatically migrate an old value. required means a usable value must be provided; it does not select a channel automatically. category groups related settings.

Validate the schema and behavior

Run the configuration validation available in the editor. Then fill the generated buyer form and test the actual greeting. Valid JSON only proves syntax: the chosen channel must still exist and be accessible.

Internal values

Use internal: true for values that must not be exposed to buyers. Do not use an ordinary text field as a secret vault. Plugin secret configuration follows its own supported secret declaration and runtime handling.