@elizaos/plugin-discord 2.0.0-alpha.1 → 2.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/accounts.d.ts +164 -0
  2. package/dist/accounts.d.ts.map +1 -0
  3. package/dist/actions/chatWithAttachments.d.ts +4 -0
  4. package/dist/actions/chatWithAttachments.d.ts.map +1 -0
  5. package/dist/actions/createPoll.d.ts +4 -0
  6. package/dist/actions/createPoll.d.ts.map +1 -0
  7. package/dist/actions/deleteMessage.d.ts +4 -0
  8. package/dist/actions/deleteMessage.d.ts.map +1 -0
  9. package/dist/actions/downloadMedia.d.ts +4 -0
  10. package/dist/actions/downloadMedia.d.ts.map +1 -0
  11. package/dist/actions/editMessage.d.ts +4 -0
  12. package/dist/actions/editMessage.d.ts.map +1 -0
  13. package/dist/actions/getUserInfo.d.ts +4 -0
  14. package/dist/actions/getUserInfo.d.ts.map +1 -0
  15. package/dist/actions/joinChannel.d.ts +4 -0
  16. package/dist/actions/joinChannel.d.ts.map +1 -0
  17. package/dist/actions/leaveChannel.d.ts +4 -0
  18. package/dist/actions/leaveChannel.d.ts.map +1 -0
  19. package/dist/actions/listChannels.d.ts +4 -0
  20. package/dist/actions/listChannels.d.ts.map +1 -0
  21. package/dist/actions/pinMessage.d.ts +4 -0
  22. package/dist/actions/pinMessage.d.ts.map +1 -0
  23. package/dist/actions/reactToMessage.d.ts +4 -0
  24. package/dist/actions/reactToMessage.d.ts.map +1 -0
  25. package/dist/actions/readChannel.d.ts +4 -0
  26. package/dist/actions/readChannel.d.ts.map +1 -0
  27. package/dist/actions/searchMessages.d.ts +4 -0
  28. package/dist/actions/searchMessages.d.ts.map +1 -0
  29. package/dist/actions/sendDM.d.ts +4 -0
  30. package/dist/actions/sendDM.d.ts.map +1 -0
  31. package/dist/actions/sendMessage.d.ts +4 -0
  32. package/dist/actions/sendMessage.d.ts.map +1 -0
  33. package/dist/actions/serverInfo.d.ts +4 -0
  34. package/dist/actions/serverInfo.d.ts.map +1 -0
  35. package/dist/actions/summarizeConversation.d.ts +4 -0
  36. package/dist/actions/summarizeConversation.d.ts.map +1 -0
  37. package/dist/actions/transcribeMedia.d.ts +4 -0
  38. package/dist/actions/transcribeMedia.d.ts.map +1 -0
  39. package/dist/actions/unpinMessage.d.ts +4 -0
  40. package/dist/actions/unpinMessage.d.ts.map +1 -0
  41. package/dist/allowlist.d.ts +198 -0
  42. package/dist/allowlist.d.ts.map +1 -0
  43. package/dist/attachments.d.ts +92 -0
  44. package/dist/attachments.d.ts.map +1 -0
  45. package/dist/banner.d.ts +39 -0
  46. package/dist/banner.d.ts.map +1 -0
  47. package/dist/compat.d.ts +56 -0
  48. package/dist/compat.d.ts.map +1 -0
  49. package/dist/config.d.ts +156 -0
  50. package/dist/config.d.ts.map +1 -0
  51. package/dist/constants.d.ts +2 -0
  52. package/dist/constants.d.ts.map +1 -0
  53. package/dist/environment.d.ts +22 -0
  54. package/dist/environment.d.ts.map +1 -0
  55. package/dist/generated/prompts/typescript/prompts.d.ts +44 -0
  56. package/dist/generated/prompts/typescript/prompts.d.ts.map +1 -0
  57. package/dist/generated/specs/spec-helpers.d.ts +49 -0
  58. package/dist/generated/specs/spec-helpers.d.ts.map +1 -0
  59. package/dist/generated/specs/specs.d.ts +87 -0
  60. package/dist/generated/specs/specs.d.ts.map +1 -0
  61. package/dist/identity.d.ts +4 -0
  62. package/dist/identity.d.ts.map +1 -0
  63. package/dist/index.browser.d.ts +34 -0
  64. package/dist/index.browser.d.ts.map +1 -0
  65. package/dist/index.d.ts.map +1 -0
  66. package/dist/index.js +14175 -0
  67. package/dist/index.js.map +133 -0
  68. package/dist/messages.d.ts +55 -0
  69. package/dist/messages.d.ts.map +1 -0
  70. package/dist/messaging.d.ts +129 -0
  71. package/dist/messaging.d.ts.map +1 -0
  72. package/dist/native-commands.d.ts +142 -0
  73. package/dist/native-commands.d.ts.map +1 -0
  74. package/dist/permissionEvents.d.ts +42 -0
  75. package/dist/permissionEvents.d.ts.map +1 -0
  76. package/dist/permissions.d.ts +36 -0
  77. package/dist/permissions.d.ts.map +1 -0
  78. package/dist/providers/channelState.d.ts +14 -0
  79. package/dist/providers/channelState.d.ts.map +1 -0
  80. package/dist/providers/guildInfo.d.ts +15 -0
  81. package/dist/providers/guildInfo.d.ts.map +1 -0
  82. package/dist/providers/voiceState.d.ts +12 -0
  83. package/dist/providers/voiceState.d.ts.map +1 -0
  84. package/dist/service.d.ts +403 -0
  85. package/dist/service.d.ts.map +1 -0
  86. package/dist/test-setup.d.ts +1 -0
  87. package/dist/test-setup.d.ts.map +1 -0
  88. package/dist/tests.d.ts +123 -0
  89. package/dist/tests.d.ts.map +1 -0
  90. package/dist/types.d.ts +315 -0
  91. package/dist/types.d.ts.map +1 -0
  92. package/dist/utils.d.ts +44 -0
  93. package/dist/utils.d.ts.map +1 -0
  94. package/dist/vitest.config.d.ts +3 -0
  95. package/dist/vitest.config.d.ts.map +1 -0
  96. package/dist/voice.d.ts +230 -0
  97. package/dist/voice.d.ts.map +1 -0
  98. package/package.json +134 -124
package/package.json CHANGED
@@ -1,126 +1,136 @@
1
1
  {
2
- "name": "@elizaos/plugin-discord",
3
- "version": "2.0.0-alpha.1",
4
- "description": "",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "module": "dist/index.js",
8
- "types": "dist/index.d.ts",
9
- "sideEffects": false,
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/elizaos-plugins/plugin-discord.git"
13
- },
14
- "exports": {
15
- "./package.json": "./package.json",
16
- ".": {
17
- "types": "./dist/index.d.ts",
18
- "import": "./dist/index.js",
19
- "default": "./dist/index.js"
20
- }
21
- },
22
- "files": [
23
- "dist"
24
- ],
25
- "keywords": [],
26
- "author": "elizaOS",
27
- "license": "MIT",
28
- "scripts": {
29
- "build": "bun run build.ts",
30
- "build:ts": "bun run build.ts",
31
- "dev": "bun --hot build.ts",
32
- "clean": "rm -rf dist .turbo node_modules",
33
- "test": "vitest run",
34
- "typecheck": "tsc --noEmit",
35
- "lint": "bunx @biomejs/biome check --write --unsafe .",
36
- "lint:check": "bunx @biomejs/biome check .",
37
- "format": "bunx @biomejs/biome format --write .",
38
- "format:check": "bunx @biomejs/biome format ."
39
- },
40
- "dependencies": {
41
- "@discordjs/opus": "^0.10.0",
42
- "@discordjs/rest": "2.4.3",
43
- "@discordjs/voice": "0.18.0",
44
- "@elizaos/core": "workspace:*",
45
- "discord.js": "14.18.0",
46
- "fast-levenshtein": "^3.0.0",
47
- "fluent-ffmpeg": "^2.1.3",
48
- "get-func-name": "^3.0.0",
49
- "libsodium-wrappers": "^0.7.13",
50
- "opusscript": "^0.1.1",
51
- "prism-media": "1.3.5",
52
- "typescript": "^5.9.3",
53
- "zod": "^4.3.5"
54
- },
55
- "devDependencies": {
56
- "@types/node": "^25.0.3",
57
- "typescript": "^5.9.3",
58
- "@biomejs/biome": "^2.3.11"
59
- },
60
- "peerDependencies": {
61
- "whatwg-url": "7.1.0",
62
- "@elizaos/core": "workspace:*"
63
- },
64
- "publishConfig": {
65
- "access": "public"
66
- },
67
- "agentConfig": {
68
- "pluginType": "elizaos:plugin:1.0.0",
69
- "pluginParameters": {
70
- "DISCORD_API_TOKEN": {
71
- "type": "string",
72
- "description": "Discord API token used to authenticate and log in the Discord client/service.",
73
- "required": true,
74
- "sensitive": true
75
- },
76
- "DISCORD_APPLICATION_ID": {
77
- "type": "string",
78
- "description": "Discord application ID for the bot",
79
- "required": true,
80
- "sensitive": false
81
- },
82
- "CHANNEL_IDS": {
83
- "type": "string",
84
- "description": "Comma-separated list of Discord channel IDs that will be parsed into an array if provided.",
85
- "required": false,
86
- "sensitive": false
87
- },
88
- "DISCORD_TEST_CHANNEL_ID": {
89
- "type": "string",
90
- "description": "Discord channel ID used during test suite to locate the test channel for sending messages, voice interactions, and other test operations.",
91
- "required": false,
92
- "sensitive": false
93
- },
94
- "DISCORD_VOICE_CHANNEL_ID": {
95
- "type": "string",
96
- "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.",
97
- "required": false,
98
- "sensitive": false
99
- },
100
- "DISCORD_SHOULD_IGNORE_BOT_MESSAGES": {
101
- "type": "boolean",
102
- "description": "If true, the bot will ignore messages from other bots. Can be overridden by character settings.",
103
- "required": false,
104
- "sensitive": false
105
- },
106
- "DISCORD_SHOULD_IGNORE_DIRECT_MESSAGES": {
107
- "type": "boolean",
108
- "description": "If true, the bot will ignore direct messages. Can be overridden by character settings.",
109
- "required": false,
110
- "sensitive": false
111
- },
112
- "DISCORD_SHOULD_RESPOND_ONLY_TO_MENTIONS": {
113
- "type": "boolean",
114
- "description": "If true, the bot will only respond when explicitly mentioned. Can be overridden by character settings.",
115
- "required": false,
116
- "sensitive": false
117
- },
118
- "DISCORD_LISTEN_CHANNEL_IDS": {
119
- "type": "string",
120
- "description": "Comma-separated list of Discord channel IDs where the bot will only listen (not respond).",
121
- "required": false,
122
- "sensitive": false
123
- }
124
- }
125
- }
2
+ "name": "@elizaos/plugin-discord",
3
+ "version": "2.0.0-alpha.11",
4
+ "description": "",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "sideEffects": false,
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/elizaos-plugins/plugin-discord.git"
13
+ },
14
+ "exports": {
15
+ "./package.json": "./package.json",
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.js",
19
+ "default": "./dist/index.js"
20
+ }
21
+ },
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "keywords": [],
26
+ "author": "elizaOS",
27
+ "license": "MIT",
28
+ "scripts": {
29
+ "build": "bun run build.ts",
30
+ "build:ts": "bun run build.ts",
31
+ "dev": "bun --hot build.ts",
32
+ "clean": "rm -rf dist .turbo node_modules",
33
+ "test": "npx -y vitest@4.0.18 run --passWithNoTests",
34
+ "typecheck": "tsc --noEmit",
35
+ "lint": "bunx @biomejs/biome@2.4.2 check --write --unsafe .",
36
+ "lint:check": "bunx @biomejs/biome@2.4.2 check .",
37
+ "format": "bunx @biomejs/biome@2.4.2 format --write .",
38
+ "format:check": "bunx @biomejs/biome@2.4.2 format ."
39
+ },
40
+ "dependencies": {
41
+ "@discordjs/opus": "^0.10.0",
42
+ "@discordjs/rest": "2.4.3",
43
+ "@discordjs/voice": "0.18.0",
44
+ "@elizaos/core": "workspace:*",
45
+ "discord-api-types": "^0.37.119",
46
+ "discord.js": "14.18.0",
47
+ "fast-levenshtein": "^3.0.0",
48
+ "fluent-ffmpeg": "^2.1.3",
49
+ "get-func-name": "^3.0.0",
50
+ "libsodium-wrappers": "^0.7.13",
51
+ "opusscript": "^0.1.1",
52
+ "prism-media": "1.3.5",
53
+ "typescript": "^5.9.3",
54
+ "zod": "^4.3.6"
55
+ },
56
+ "devDependencies": {
57
+ "@biomejs/biome": "^2.3.11",
58
+ "@types/node": "^25.0.3",
59
+ "typescript": "^5.9.3"
60
+ },
61
+ "peerDependencies": {
62
+ "@elizaos/core": "workspace:*",
63
+ "whatwg-url": "7.1.0"
64
+ },
65
+ "publishConfig": {
66
+ "access": "public"
67
+ },
68
+ "agentConfig": {
69
+ "pluginType": "elizaos:plugin:1.0.0",
70
+ "pluginParameters": {
71
+ "DISCORD_API_TOKEN": {
72
+ "type": "string",
73
+ "description": "Discord API token used to authenticate and log in the Discord client/service.",
74
+ "required": true,
75
+ "sensitive": true
76
+ },
77
+ "DISCORD_APPLICATION_ID": {
78
+ "type": "string",
79
+ "description": "Discord application ID for the bot",
80
+ "required": true,
81
+ "sensitive": false
82
+ },
83
+ "CHANNEL_IDS": {
84
+ "type": "string",
85
+ "description": "Comma-separated list of Discord channel IDs that will be parsed into an array if provided.",
86
+ "required": false,
87
+ "sensitive": false
88
+ },
89
+ "DISCORD_TEST_CHANNEL_ID": {
90
+ "type": "string",
91
+ "description": "Discord channel ID used during test suite to locate the test channel for sending messages, voice interactions, and other test operations.",
92
+ "required": false,
93
+ "sensitive": false
94
+ },
95
+ "DISCORD_VOICE_CHANNEL_ID": {
96
+ "type": "string",
97
+ "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.",
98
+ "required": false,
99
+ "sensitive": false
100
+ },
101
+ "DISCORD_SHOULD_IGNORE_BOT_MESSAGES": {
102
+ "type": "boolean",
103
+ "description": "If true, the bot will ignore messages from other bots. Can be overridden by character settings.",
104
+ "required": false,
105
+ "sensitive": false
106
+ },
107
+ "DISCORD_SHOULD_IGNORE_DIRECT_MESSAGES": {
108
+ "type": "boolean",
109
+ "description": "If true, the bot will ignore direct messages. Can be overridden by character settings.",
110
+ "required": false,
111
+ "sensitive": false
112
+ },
113
+ "DISCORD_SHOULD_RESPOND_ONLY_TO_MENTIONS": {
114
+ "type": "boolean",
115
+ "description": "If true, the bot will only respond when explicitly mentioned. Can be overridden by character settings.",
116
+ "required": false,
117
+ "sensitive": false
118
+ },
119
+ "DISCORD_LISTEN_CHANNEL_IDS": {
120
+ "type": "string",
121
+ "description": "Comma-separated list of Discord channel IDs where the bot will only listen (not respond).",
122
+ "required": false,
123
+ "sensitive": false
124
+ }
125
+ }
126
+ },
127
+ "milady": {
128
+ "platforms": [
129
+ "node"
130
+ ],
131
+ "runtime": "node",
132
+ "platformDetails": {
133
+ "node": "Default export (Node.js)"
134
+ }
135
+ }
126
136
  }