{ "name": "@elizaos/plugin-discord", "version": "2.0.3-beta.7", "description": "", "type": "module", "main": "dist/index.js", "module": "dist/index.js", "types": "dist/index.d.ts", "sideEffects": false, "repository": { "type": "git", "url": "git+https://github.com/elizaos-plugins/plugin-discord.git" }, "exports": { "./package.json": "./package.json", ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "default": "./dist/index.js" }, "./*.css": "./dist/*.css", "./user-account-scraper": { "types": "./dist/user-account-scraper/index.d.ts", "eliza-source": { "types": "./user-account-scraper/index.ts", "import": "./user-account-scraper/index.ts", "default": "./user-account-scraper/index.ts" }, "import": "./dist/user-account-scraper/index.js", "default": "./dist/user-account-scraper/index.js" }, "./*": { "types": "./dist/*.d.ts", "eliza-source": { "types": "./*.ts", "import": "./*.ts", "default": "./*.ts" }, "import": "./dist/*.js", "default": "./dist/*.js" } }, "files": [ "registry-entry.json", "dist" ], "keywords": [], "author": "elizaOS", "license": "MIT", "scripts": { "build": "bun run build.ts", "build:ts": "bun run build.ts", "dev": "bun --hot build.ts", "clean": "node ../../packages/scripts/rm-path-recursive.mjs dist .turbo && node ../../packages/scripts/clean-stray-dts.mjs", "test": "vitest run", "test:harness": "vitest run --config ./vitest.harness.config.ts", "typecheck": "tsgo --noEmit -p tsconfig.json", "lint": "bunx @biomejs/biome check --write --unsafe .", "lint:check": "bunx @biomejs/biome check .", "format": "bunx @biomejs/biome format --write .", "format:check": "bunx @biomejs/biome format .", "test:e2e": "node ../../packages/app-core/scripts/run-local-plugin-live-smoke.mjs", "test:live": "bun run test:e2e" }, "dependencies": { "@discordjs/builders": "^1.14.1", "@discordjs/collection": "2.1.1", "@discordjs/formatters": "^0.6.2", "@discordjs/opus": "^0.10.0", "@discordjs/rest": "^2.6.1", "@discordjs/util": "^1.2.0", "@discordjs/voice": "^0.19.2", "@discordjs/ws": "^1.2.3", "@elizaos/core": "workspace:*", "@elizaos/plugin-browser": "workspace:*", "@elizaos/plugin-commands": "workspace:*", "@elizaos/plugin-meetings": "workspace:*", "@sapphire/snowflake": "3.5.5", "discord-api-types": "^0.38.0", "discord.js": "^14.26.4", "fast-deep-equal": "3.1.3", "fast-levenshtein": "^3.0.0", "fluent-ffmpeg": "^2.1.3", "get-func-name": "^3.0.0", "libsodium-wrappers": "^0.8.0", "lodash.snakecase": "4.1.1", "magic-bytes.js": "^1.13.0", "opusscript": "^0.1.1", "prism-media": "1.3.5", "tslib": "^2.6.3", "undici": "8.5.0", "zod": "^4.4.3" }, "devDependencies": { "@biomejs/biome": "2.5.3", "@elizaos/test-harness": "workspace:*", "@types/node": "^25.0.3", "typescript": "^6.0.3", "vitest": "^4.1.4" }, "peerDependencies": { "@elizaos/core": "workspace:*" }, "publishConfig": { "access": "public" }, "agentConfig": { "pluginType": "elizaos:plugin:1.0.0", "pluginParameters": { "DISCORD_API_TOKEN": { "type": "string", "description": "Discord API token used to authenticate and log in the Discord client/service.", "required": true, "sensitive": true }, "DISCORD_APPLICATION_ID": { "type": "string", "description": "Discord application ID for the bot", "required": true, "sensitive": false }, "CHANNEL_IDS": { "type": "string", "description": "Comma-separated list of Discord channel IDs that will be parsed into an array if provided.", "required": false, "sensitive": false }, "DISCORD_TEST_CHANNEL_ID": { "type": "string", "description": "Discord channel ID used during test suite to locate the test channel for sending messages, voice interactions, and other test operations.", "required": false, "sensitive": false }, "DISCORD_VOICE_TRANSCRIPTS": { "type": "string", "description": "Set to \"on\" to record live diarized meeting transcripts whenever the bot sits in a voice channel. Off by default; the /transcribe slash command can start/stop per channel.", "required": false, "sensitive": false }, "DISCORD_VOICE_CHANNEL_ID": { "type": "string", "description": "ID of the Discord voice channel the bot should join when scanning a guild. If not supplied, the bot selects a channel based on member activity.", "required": false, "sensitive": false }, "DISCORD_SHOULD_IGNORE_BOT_MESSAGES": { "type": "boolean", "description": "If true, the bot will ignore messages from other bots. Can be overridden by character settings.", "required": false, "sensitive": false }, "DISCORD_SHOULD_IGNORE_DIRECT_MESSAGES": { "type": "boolean", "description": "If true, the bot will ignore direct messages. Can be overridden by character settings.", "required": false, "sensitive": false }, "DISCORD_SHOULD_RESPOND_ONLY_TO_MENTIONS": { "type": "boolean", "description": "If true, the bot will only respond when explicitly mentioned. Can be overridden by character settings.", "required": false, "sensitive": false }, "DISCORD_LISTEN_CHANNEL_IDS": { "type": "string", "description": "Comma-separated list of Discord channel IDs where the bot will only listen (not respond).", "required": false, "sensitive": false } } }, "eliza": { "platforms": [ "node" ], "runtime": "node", "platformDetails": { "node": "Default export (Node.js)" } }, "gitHead": "05d4ca11d769db8c7f54a722ee24b2ce2b951543" }