Skip to content

Discord voice messages are silently dropped #340

@VACInc

Description

@VACInc

Bug

Discord voice messages are silently dropped and never reach the agent.

Cause

Voice messages have empty content field — the audio is in the attachment. The text resolution code uses nullish coalescing (??):

const text =
  message.content?.trim() ??
  media?.placeholder ??
  ...

Empty string ("") is falsy but not nullish, so it doesn't fall through to media?.placeholder.

Fix

Change ?? to || in src/discord/monitor.ts.

PR

#339

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions