Skip to content

[Bug]: Discord voice replies drop their message reference #68728

Description

@ooiuuii

Summary

Discord voice replies lose their reply anchor. GatewayRunner passes the source message ID to DiscordAdapter.send_voice(reply_to=...), and the adapter accepts that argument, but neither the native voice-message REST payload nor the file-attachment fallback includes a message reference.

Reproduction

  1. Call send_voice(channel_id, audio_path, reply_to="99") for an existing Discord message.
  2. Inspect the native /channels/{channel_id}/messages payload_json.
  3. Force the native request to fail and inspect the fallback channel.send() call.

Current behavior:

  • payload_json has voice flags and attachment metadata but no message_reference.
  • fallback calls channel.send(file=file) without reference.

The voice response is posted as an unthreaded channel message.

Expected behavior

When reply mode is enabled and the target can be resolved, native and fallback voice sends should preserve the same reply reference as text sends. Reply mode off and unavailable targets should continue to send without a reference.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/gatewayGateway runner, session dispatch, deliveryplatform/discordDiscord bot adaptersweeper:risk-message-deliverySweeper risk: may drop, duplicate, misroute, or suppress messagestype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions