feat: add /voice slash command to Discord + fix cross-platform send_voice

- Register /voice as Discord slash command with mode choices
- Fix _send_voice_reply to handle adapters that don't accept metadata
  parameter (Discord) by inspecting the method signature at runtime
This commit is contained in:
0xbyt4 2026-03-10 23:37:02 +03:00
parent d80da5ddd8
commit f6cf4ca826
3 changed files with 31 additions and 11 deletions

View file

@ -229,7 +229,7 @@ class TestSendVoiceReply:
mock_adapter.send_voice.assert_called_once()
call_args = mock_adapter.send_voice.call_args
assert call_args[0][0] == "123" # chat_id
assert call_args.kwargs.get("chat_id") == "123"
@pytest.mark.asyncio
async def test_empty_text_after_strip_skips(self, runner):