fix: accept **kwargs in send_voice for Discord and Slack adapters

play_tts base class forwards metadata via **kwargs to send_voice,
but Discord and Slack adapters did not accept extra keyword arguments,
causing TypeError and silent message handling failure.

Also fix test_web_defaults to patch correct env var (WEB_UI_TOKEN).
This commit is contained in:
0xbyt4 2026-03-11 21:36:54 +03:00
parent f078cb4038
commit 1b10c3711d
3 changed files with 3 additions and 2 deletions

View file

@ -506,6 +506,7 @@ class SlackAdapter(BasePlatformAdapter):
caption: Optional[str] = None,
reply_to: Optional[str] = None,
metadata: Optional[Dict[str, Any]] = None,
**kwargs,
) -> SendResult:
"""Send an audio file to Slack."""
try: