Skip to content

Commit cb1b11f

Browse files
Merge pull request #540 from bmgalego/fix-discord-voice
fix: discord voice memory id not unique
2 parents b08f3f7 + 0c04231 commit cb1b11f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/client-discord/src/voice.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ export class VoiceManager extends EventEmitter {
485485

486486
const memory = {
487487
id: stringToUuid(
488-
channelId + "-voice-message-" + Date.now()
488+
roomId + "-voice-message-" + Date.now()
489489
),
490490
agentId: this.runtime.agentId,
491491
content: {
@@ -540,7 +540,11 @@ export class VoiceManager extends EventEmitter {
540540

541541
const responseMemory: Memory = {
542542
id: stringToUuid(
543-
memory.id + "-voice-response-" + Date.now()
543+
roomId +
544+
"-" +
545+
memory.id +
546+
"-voice-response-" +
547+
Date.now()
544548
),
545549
agentId: this.runtime.agentId,
546550
userId: this.runtime.agentId,

0 commit comments

Comments
 (0)