@elizaos/plugin-discord 1.0.0-alpha.7 → 1.0.0-beta.0

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.
package/README.md CHANGED
@@ -16,7 +16,7 @@ A Discord client implementation for ElizaOS, enabling rich integration with Disc
16
16
  As this is a workspace package, it's installed as part of the ElizaOS monorepo:
17
17
 
18
18
  ```bash
19
- pnpm install
19
+ bun install
20
20
  ```
21
21
 
22
22
  ## Configuration
@@ -51,8 +51,8 @@ await discordManager.command.registerCommands([
51
51
  {
52
52
  name: 'example',
53
53
  description: 'An example slash command',
54
- options: []
55
- }
54
+ options: [],
55
+ },
56
56
  ]);
57
57
  ```
58
58
 
@@ -62,7 +62,7 @@ await discordManager.command.registerCommands([
62
62
  // Listen for new messages
63
63
  await discordManager.message.handleNewMessage({
64
64
  channelId: 'channel-id',
65
- content: 'Hello Discord!'
65
+ content: 'Hello Discord!',
66
66
  });
67
67
  ```
68
68
 
@@ -75,27 +75,30 @@ await discordManager.voice.joinChannel('channel-id');
75
75
  // Handle voice interactions
76
76
  await discordManager.voice.handleInteraction({
77
77
  userId: 'user-id',
78
- action: 'speak'
78
+ action: 'speak',
79
79
  });
80
80
  ```
81
81
 
82
82
  ## Key Components
83
83
 
84
84
  1. **ClientBase**
85
- - Handles authentication and session management.
86
- - Manages websocket connections.
85
+
86
+ - Handles authentication and session management.
87
+ - Manages websocket connections.
87
88
 
88
89
  2. **MessageManager**
89
- - Processes incoming messages and responses.
90
- - Supports message formatting and templating.
90
+
91
+ - Processes incoming messages and responses.
92
+ - Supports message formatting and templating.
91
93
 
92
94
  3. **VoiceManager**
93
- - Manages voice interactions and events.
94
- - Handles joining and leaving voice channels.
95
+
96
+ - Manages voice interactions and events.
97
+ - Handles joining and leaving voice channels.
95
98
 
96
99
  4. **CommandManager**
97
- - Registers and processes slash commands.
98
- - Ensures permissions are validated.
100
+ - Registers and processes slash commands.
101
+ - Ensures permissions are validated.
99
102
 
100
103
  ## Notes
101
104