@elizaos/plugin-discord 1.3.8 → 2.0.0-alpha.10

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 (99) 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/index.browser.d.ts +34 -0
  62. package/dist/index.browser.d.ts.map +1 -0
  63. package/dist/index.d.ts +2 -942
  64. package/dist/index.d.ts.map +1 -0
  65. package/dist/index.js +9865 -7014
  66. package/dist/index.js.map +132 -1
  67. package/dist/messages.d.ts +55 -0
  68. package/dist/messages.d.ts.map +1 -0
  69. package/dist/messaging.d.ts +129 -0
  70. package/dist/messaging.d.ts.map +1 -0
  71. package/dist/native-commands.d.ts +142 -0
  72. package/dist/native-commands.d.ts.map +1 -0
  73. package/dist/permissionEvents.d.ts +42 -0
  74. package/dist/permissionEvents.d.ts.map +1 -0
  75. package/dist/permissions.d.ts +36 -0
  76. package/dist/permissions.d.ts.map +1 -0
  77. package/dist/providers/channelState.d.ts +14 -0
  78. package/dist/providers/channelState.d.ts.map +1 -0
  79. package/dist/providers/guildInfo.d.ts +15 -0
  80. package/dist/providers/guildInfo.d.ts.map +1 -0
  81. package/dist/providers/voiceState.d.ts +12 -0
  82. package/dist/providers/voiceState.d.ts.map +1 -0
  83. package/dist/service.d.ts +403 -0
  84. package/dist/service.d.ts.map +1 -0
  85. package/dist/test-setup.d.ts +1 -0
  86. package/dist/test-setup.d.ts.map +1 -0
  87. package/dist/tests.d.ts +123 -0
  88. package/dist/tests.d.ts.map +1 -0
  89. package/dist/types.d.ts +315 -0
  90. package/dist/types.d.ts.map +1 -0
  91. package/dist/utils.d.ts +44 -0
  92. package/dist/utils.d.ts.map +1 -0
  93. package/dist/vitest.config.d.ts +3 -0
  94. package/dist/vitest.config.d.ts.map +1 -0
  95. package/dist/voice.d.ts +230 -0
  96. package/dist/voice.d.ts.map +1 -0
  97. package/package.json +134 -123
  98. package/LICENSE +0 -21
  99. package/README.md +0 -531
package/package.json CHANGED
@@ -1,125 +1,136 @@
1
1
  {
2
- "name": "@elizaos/plugin-discord",
3
- "version": "1.3.8",
4
- "type": "module",
5
- "main": "dist/index.js",
6
- "module": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/elizaos-plugins/plugin-discord.git"
11
- },
12
- "exports": {
13
- "./package.json": "./package.json",
14
- ".": {
15
- "import": {
16
- "types": "./dist/index.d.ts",
17
- "default": "./dist/index.js"
18
- }
19
- }
20
- },
21
- "files": [
22
- "dist"
23
- ],
24
- "dependencies": {
25
- "@discordjs/opus": "^0.10.0",
26
- "@discordjs/rest": "2.4.3",
27
- "@discordjs/voice": "0.18.0",
28
- "@elizaos/core": "^1.7.2",
29
- "discord.js": "14.18.0",
30
- "fast-levenshtein": "^3.0.0",
31
- "fluent-ffmpeg": "^2.1.3",
32
- "get-func-name": "^3.0.0",
33
- "libsodium-wrappers": "^0.7.13",
34
- "opusscript": "^0.1.1",
35
- "prism-media": "1.3.5",
36
- "typescript": "^5.8.3",
37
- "zod": "4.1.13"
38
- },
39
- "devDependencies": {
40
- "@elizaos/config": "1.6.5",
41
- "@eslint/js": "^9.17.0",
42
- "@typescript-eslint/eslint-plugin": "^8.22.0",
43
- "@typescript-eslint/parser": "^8.22.0",
44
- "eslint": "^9.17.0",
45
- "prettier": "3.5.3",
46
- "tsup": "8.4.0",
47
- "vitest": "1.6.1"
48
- },
49
- "scripts": {
50
- "build": "tsup",
51
- "dev": "tsup --watch",
52
- "test": "elizaos test",
53
- "lint": "eslint ./src --fix && prettier --write ./src",
54
- "lint:check": "eslint ./src",
55
- "clean": "rm -rf dist .turbo node_modules .turbo-tsconfig.json tsconfig.tsbuildinfo",
56
- "format": "prettier --write ./src",
57
- "format:check": "prettier --check ./src"
58
- },
59
- "peerDependencies": {
60
- "whatwg-url": "7.1.0"
61
- },
62
- "publishConfig": {
63
- "access": "public"
64
- },
65
- "gitHead": "646c632924826e2b75c2304a75ee56959fe4a460",
66
- "agentConfig": {
67
- "pluginType": "elizaos:plugin:1.0.0",
68
- "pluginParameters": {
69
- "DISCORD_API_TOKEN": {
70
- "type": "string",
71
- "description": "Discord API token used to authenticate and log in the Discord client/service.",
72
- "required": true,
73
- "sensitive": true
74
- },
75
- "DISCORD_APPLICATION_ID": {
76
- "type": "string",
77
- "description": "Discord application ID for the bot",
78
- "required": true,
79
- "sensitive": false
80
- },
81
- "CHANNEL_IDS": {
82
- "type": "string",
83
- "description": "Comma-separated list of Discord channel IDs that will be parsed into an array if provided.",
84
- "required": false,
85
- "sensitive": false
86
- },
87
- "DISCORD_TEST_CHANNEL_ID": {
88
- "type": "string",
89
- "description": "Discord channel ID used during test suite to locate the test channel for sending messages, voice interactions, and other test operations.",
90
- "required": false,
91
- "sensitive": false
92
- },
93
- "DISCORD_VOICE_CHANNEL_ID": {
94
- "type": "string",
95
- "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.",
96
- "required": false,
97
- "sensitive": false
98
- },
99
- "DISCORD_SHOULD_IGNORE_BOT_MESSAGES": {
100
- "type": "boolean",
101
- "description": "If true, the bot will ignore messages from other bots. Can be overridden by character settings.",
102
- "required": false,
103
- "sensitive": false
104
- },
105
- "DISCORD_SHOULD_IGNORE_DIRECT_MESSAGES": {
106
- "type": "boolean",
107
- "description": "If true, the bot will ignore direct messages. Can be overridden by character settings.",
108
- "required": false,
109
- "sensitive": false
110
- },
111
- "DISCORD_SHOULD_RESPOND_ONLY_TO_MENTIONS": {
112
- "type": "boolean",
113
- "description": "If true, the bot will only respond when explicitly mentioned. Can be overridden by character settings.",
114
- "required": false,
115
- "sensitive": false
116
- },
117
- "DISCORD_LISTEN_CHANNEL_IDS": {
118
- "type": "string",
119
- "description": "Comma-separated list of Discord channel IDs where the bot will only listen (not respond).",
120
- "required": false,
121
- "sensitive": false
122
- }
123
- }
124
- }
2
+ "name": "@elizaos/plugin-discord",
3
+ "version": "2.0.0-alpha.10",
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": "2.0.0-alpha.3",
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": "2.0.0-alpha.3",
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
+ }
125
136
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Shaw Walters and elizaOS Contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.