{
  "name": "@openclaw/discord",
  "version": "2026.8.1",
  "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.52",
    "libopus-wasm": "0.2.0",
    "mdast-util-from-markdown": "2.0.3",
    "p-map": "7.0.6",
    "typebox": "1.3.6",
    "undici": "8.9.0",
    "ws": "8.21.1",
    "zod": "4.4.3"
  },
  "devDependencies": {
    "@openclaw/plugin-sdk": "workspace:*",
    "openclaw": "workspace:*"
  },
  "peerDependencies": {
    "openclaw": ">=2026.8.1"
  },
  "peerDependenciesMeta": {
    "openclaw": {
      "optional": true
    }
  },
  "openclaw": {
    "extensions": [
      "./index.ts"
    ],
    "setupEntry": "./setup-entry.ts",
    "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"
            },
            "envVars": ["DISCORD_BOT_TOKEN"]
          }
        ]
      },
      "commands": {
        "nativeCommandsAutoEnabled": true,
        "nativeSkillsAutoEnabled": true
      },
      "doctorCapabilities": {
        "dmAllowFromMode": "topOnly",
        "groupModel": "route",
        "groupAllowFromFallbackToAllowFrom": false,
        "warnOnEmptyGroupSenderAllowlist": false
      }
    },
    "install": {
      "npmSpec": "@openclaw/discord",
      "defaultChoice": "npm",
      "minHostVersion": ">=2026.5.26",
      "allowInvalidConfigRecovery": true
    },
    "compat": {
      "pluginApi": ">=2026.8.1"
    },
    "build": {
      "openclawVersion": "2026.8.1",
      "staticAssets": [
        {
          "source": "./assets/embedded-app-sdk.mjs",
          "output": "assets/embedded-app-sdk.mjs"
        }
      ]
    },
    "assetScripts": {
      "build": "node --import tsx ../../scripts/build-discord-activity-sdk.mts"
    },
    "release": {
      "publishToClawHub": true,
      "publishToNpm": true
    }
  }
}
