Skip to content

manifest.json ​

Every plugin must ship a manifest.json at its root URL. Dissent fetches this when an admin installs a plugin via URL.

Example ​

json
{
  "id": "chess-stats",
  "name": "Chess.com Stats",
  "version": "1.2.0",
  "description": "Live chess rating and recent game history from Chess.com.",
  "context": ["sidebar", "profile"],
  "tier": 2,
  "url": "https://myplugins.example.com/chess-stats/index.html",
  "declared_permissions": ["fetch:external"],
  "allowed_fetch_domains": ["api.chess.com"],
  "config_schema": {
    "username": {
      "type": "string",
      "label": "Chess.com username",
      "required": true
    }
  }
}

Manifest version 2 — permissions on demand ​

Add "manifest_version": 2 and split what the plugin asks for in two:

json
{
  "manifest_version": 2,
  "permissions": ["storage:user"],
  "optional_permissions": ["members:read", "bot:post"]
}
  • permissions are asked on Dissent's card when a member first opens the plugin — keep this to the plugin's basic job.
  • optional_permissions are asked by Dissent's own small card the first time the plugin calls one: "Dice wants to: See who is in this server — Not now / Allow". Allow is remembered; Not now refuses that call and is remembered until the member reloads, so calling again does not bring the card back. Nothing changes in your code: call the SDK as usual and handle a refusal.
  • A server admin sees optional permissions under It may ask later on the plugin's Permissions tab and can turn any of them off — then nobody is asked, the call is refused, and your server half does not get it either.
  • sparks:award and tournaments:report cannot be optional: only the server half uses them, and no member is ever asked.
  • A v1 manifest (no manifest_version) is read exactly as before: everything in declared_permissions is asked at open, and any permissions / optional_permissions keys are ignored. A v2 manifest may still use declared_permissions for its core list.

An update that adds an optional permission is still an addition: the server admin approves it first, and members are asked only when the plugin needs it.

The JSON Schema is published at /schema/plugin-manifest-v2.json.

Commands ​

A v2 manifest can declare up to 25 commands members type in the chat box:

json
"commands": [
  { "name": "roll", "description": "Roll a die",
    "options": [{ "name": "sides", "type": "integer", "required": true }] },
  { "name": "say", "description": "Say it in the channel",
    "options": [{ "name": "text", "type": "string" }], "reply": "public" }
]
  • name: 1–32 of a-z 0-9 - _; not gif, me or poll (Dissent's own).
  • options (up to 10): string, integer, number, boolean, user or channel; required ones first. Members type them as name:value or in order (/roll 20); the last string option takes the rest of the line. The node reads and checks them — your code gets typed values.
  • A user option is picked like a mention: the member types @ and picks someone (or types name#1234). Your code gets { id, name } of a member of this server — never anyone else. A name two members share is refused with "type their name#1234". A channel option is typed as #name; you get { id, name } of a channel on this server that the member can see — a channel hidden from them reads as "no channel called …".
  • reply: "private" (default — only the person who typed it sees the answer) or "public" (posted in the channel as your plugin, "used by" them; needs bot:post).

Your server half runs a command if you have one (trigger "command"; command() in the server SDK); otherwise Dissent opens your panel and calls Dissent.onCommand. Dissent draws the suggestion (your plugin's name, "from" and the source node), the "Only you can see this" frame and the reply's credit. What a member types never goes into the channel, so commands work in encrypted channels too; a public answer there is marked "not encrypted". A server admin can turn any command off. An update that only changes commands is adopted at once.

A command's answer can also carry buttons (on a public reply) or open a form — see Buttons, dropdowns and forms. Components need nothing in the manifest.

Server events and webhooks ​

A v2 manifest with a server half can ask to be told when things happen on the server, and can declare webhooks that outside services call:

json
"events":   ["member.joined", "voice.joined"],
"webhooks": [{ "name": "github", "description": "New releases" }]

Both reach only your server half — see Server events and webhooks. The admin sees the events at install and on the plugin's Permissions tab; an update that adds an event waits for the admin, like a new permission. A webhook does nothing until a server admin switches it on for their server and pastes its link somewhere. Add "reply": true to a webhook to let it answer its caller with what your plugin returns — a bigger ask (shown at install, an update that adds it waits for the admin, calls must be signed): see Webhooks that answer.

Send to plugin and giving roles ​

json
"message_actions": [{ "name": "Translate", "description": "Into English" }],
"permissions": ["roles:assign"]

message_actions puts Send to <your plugin> · Translate on the message menu (right-click, or long-press on a phone). roles:assign lets your server half give and take the roles a server admin ticks for it — never a role with any power. See Send to plugin and giving roles.

Fields ​

id · string · required ​

Unique stable identifier for your plugin. Use lowercase letters, numbers, and hyphens. Once set, do not change — Dissent uses this to identify the plugin in the registry and across reinstalls.

Example: "chess-stats"


name · string · required ​

Display name shown in the marketplace and Server Settings.

Example: "Chess.com Stats"


version · string · required ​

Semantic version string.

Example: "1.2.0"


description · string · required ​

One or two sentences describing what the plugin does. Shown in the marketplace listing.

Example: "Live chess rating and recent game history from Chess.com."


context · string[] · required ​

Array of contexts this plugin supports. Valid values: "channel", "sidebar", "profile", "embed", "personal".

A "personal" plugin may declare only the permissions of the personal lane — see Personal Plugins.

A plugin whose context is only ["personal"] cannot be installed on a server: each person adds it from My plugins, and the node refuses a server install of it. List another context as well if it also belongs on servers.

Example: ["sidebar", "profile"]


tier · 1 | 2 | 3 · required ​

A label: 1 Passive, 2 Interactive, 3 Activity, shown in the marketplace, server settings and on the consent card. It grants no permissions and does not decide whether the consent card appears — declared_permissions does both. See Permissions.

Example: 1


url · string · required ​

The full URL to the plugin's index.html. This is snapshotted in the database at install time. If your domain changes, the plugin must be reinstalled.

Example: "https://myplugins.example.com/chess-stats/index.html"


config_schema · object · optional ​

Defines admin-configurable fields. Each key becomes an input in the plugin's config UI inside Server Settings. If null or omitted, the plugin has no admin configuration.

Each value is an object with:

PropertyTypeDescription
type"string" | "number" | "boolean"Input type
labelstringHuman-readable label shown in the config UI
requiredbooleanWhether the field must be filled before saving

Values the admin enters are accessible in your plugin as ctx.config.

The key is snake_case. The node reads config_schema and ignores configSchema.


allowed_fetch_domains · string[] · required to use Dissent.fetch() ​

The hostnames Dissent.fetch() may reach, e.g. ["api.chess.com"]. Matching is exact — example.com does not admit api.example.com — and applies to every redirect hop. Bare hostnames only: no scheme, port or path. With an empty list, every fetch is refused (the node answers domain not in plugin allowlist; the SDK call rejects with fetch failed). Some hosts are further gated by a server-level switch that the server owner must turn on.


declared_permissions · string[] · required for any plugin that uses a permission ​

The only permissions a user can grant, for every context (a v2 manifest adds optional_permissions, asked on demand — see above). Exactly the permissions the plugin uses, e.g. ["storage:user", "game:saves", "overlay:context"]. The user approves this list; a later version that adds one shows Review permissions instead of granting it.


overlay · object · optional (personal plugins) ​

Panels this plugin adds to the desktop app's game overlay: games (catalog ids) and surfaces (id, title, layer "panel", anchor, size). The node validates it when the plugin is added. See Overlay Panels for every rule.


screenshots · string[] · optional ​

Array of image URLs shown in the marketplace listing. Recommended size: 1280×800px.


readme_url · string · optional ​

URL to a Markdown file rendered as the plugin's marketplace "About" page.