{
  "name": "@openclaw/discord",
  "version": "2026.7.2",
  "description": "OpenClaw Discord channel plugin for channels, DMs, commands, and app events.",
  "repository": {
    "type": "git",
    "url": "https://github.com/openclaw/openclaw"
  },
  "type": "module",
  "dependencies": {
    "@discord/embedded-app-sdk": "2.5.0",
    "@discordjs/voice": "0.19.2",
    "discord-api-types": "0.38.50",
    "libopus-wasm": "0.2.0",
    "mdast-util-from-markdown": "2.0.3",
    "p-map": "7.0.5",
    "typebox": "1.3.6",
    "undici": "8.6.0",
    "ws": "8.21.1",
    "zod": "4.4.3"
  },
  "devDependencies": {
    "@openclaw/plugin-sdk": "workspace:*",
    "openclaw": "workspace:*"
  },
  "peerDependencies": {
    "openclaw": ">=2026.7.2"
  },
  "peerDependenciesMeta": {
    "openclaw": {
      "optional": true
    }
  },
  "openclaw": {
    "extensions": [
      "./index.ts"
    ],
    "setupEntry": "./setup-entry.ts",
    "setupFeatures": {
      "legacyStateMigrations": true
    },
    "channel": {
      "id": "discord",
      "configuredState": {
        "env": {
          "anyOf": [
            "DISCORD_BOT_TOKEN"
          ]
        }
      },
      "approvalFlags": [
        "native"
      ],
      "label": "Discord",
      "selectionLabel": "Discord (Bot API)",
      "detailLabel": "Discord Bot",
      "docsPath": "/channels/discord",
      "docsLabel": "discord",
      "blurb": "very well supported right now.",
      "systemImage": "bubble.left.and.bubble.right",
      "markdownCapable": true,
      "preferSessionLookupForAnnounceTarget": true,
      "setup": {
        "fields": [
          {
            "key": "token",
            "kind": "string",
            "sensitive": true,
            "cli": { "flags": "--token <token>", "description": "Discord bot token" }
          },
          {
            "key": "useEnv",
            "kind": "boolean",
            "cli": { "flags": "--use-env", "description": "Use DISCORD_BOT_TOKEN" }
          }
        ]
      },
      "commands": {
        "nativeCommandsAutoEnabled": true,
        "nativeSkillsAutoEnabled": true
      }
    },
    "install": {
      "npmSpec": "@openclaw/discord",
      "defaultChoice": "npm",
      "minHostVersion": ">=2026.5.26",
      "allowInvalidConfigRecovery": true
    },
    "compat": {
      "pluginApi": ">=2026.7.2"
    },
    "build": {
      "openclawVersion": "2026.7.2",
      "staticAssets": [
        {
          "source": "./assets/embedded-app-sdk.mjs",
          "output": "assets/embedded-app-sdk.mjs"
        }
      ]
    },
    "assetScripts": {
      "build": "node ../../scripts/build-discord-activity-sdk.mjs"
    },
    "release": {
      "publishToClawHub": true,
      "publishToNpm": true
    }
  }
}
