From 49f3f0fc6240739229031846ed6d0a465a068d13 Mon Sep 17 00:00:00 2001 From: 0xbyt4 <35742124+0xbyt4@users.noreply.github.com> Date: Sat, 14 Mar 2026 00:22:28 +0300 Subject: [PATCH] fix: add choices/Choice to discord mock for /voice slash command test --- tests/gateway/test_discord_slash_commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/gateway/test_discord_slash_commands.py b/tests/gateway/test_discord_slash_commands.py index 78141a63..3c441258 100644 --- a/tests/gateway/test_discord_slash_commands.py +++ b/tests/gateway/test_discord_slash_commands.py @@ -21,6 +21,8 @@ def _ensure_discord_mock(): discord_mod.Interaction = object discord_mod.app_commands = SimpleNamespace( describe=lambda **kwargs: (lambda fn: fn), + choices=lambda **kwargs: (lambda fn: fn), + Choice=lambda **kwargs: SimpleNamespace(**kwargs), ) ext_mod = MagicMock()