Commit b1ba780
committed
fix(discord): degrade audioAsVoice to media attachment when voice adapter unavailable
When messages.tts.auto is set to "always", the TTS pipeline sets
audioAsVoice=true on reply payloads. The outbound adapter then
tried to route through discordVoice, falling back to
sendVoiceMessageDiscord runtime. In cron delivery contexts where
no voice channel connection exists, this fallback fails with
"discordVoice outbound adapter is unavailable".
Instead of falling back to the voice runtime (which cannot work
without a voice connection), degrade gracefully: when the
discordVoice dep is unavailable, fall through to the existing
text+media delivery path which sends audio as a file attachment
to the text channel.
Closes #849521 parent 577e64d commit b1ba780
1 file changed
Lines changed: 14 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
| |||
0 commit comments