Skip to content

Cherry-pick b9b47f500: fix(discord): use correct content_type property for audio attachment detection#1616

Merged
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/b9b47f500-discord-audio-content-type
Mar 18, 2026
Merged

Cherry-pick b9b47f500: fix(discord): use correct content_type property for audio attachment detection#1616
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/b9b47f500-discord-audio-content-type

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Cherry-pick from upstream

Upstream commit: b9b47f50023d9f6384372bad6eee1a181b98c48e
Author: jiangnan [email protected]

fix(discord): use correct content_type property for audio attachment detection

Resolves #758 (2/4)

Depends on #1615

…detection

The preflight audio transcription detection used camelCase `contentType`
but Discord's APIAttachment type uses snake_case `content_type`. This
caused `hasAudioAttachment` to always be false, preventing voice message
transcription from triggering in guild channels where mention detection
requires audio preflight.

Fixes openclaw#30034

Co-Authored-By: Claude Opus 4.6 <[email protected]>
(cherry picked from commit b9b47f5)
@alexey-pelykh alexey-pelykh merged commit 4c64169 into main Mar 18, 2026
6 of 7 checks passed
@alexey-pelykh alexey-pelykh deleted the cherry-pick/b9b47f500-discord-audio-content-type branch March 18, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cherry-pick: Discord adapter + voice-call fixes

2 participants