From 180121bbdcc35d2863f1f9a99b0fdfc37c898e37 Mon Sep 17 00:00:00 2001 From: Viktor Date: Thu, 14 May 2026 20:34:04 +0000 Subject: [PATCH] =?UTF-8?q?fix(serverwhitelist):=20convert=20hybrid=5Fgrou?= =?UTF-8?q?p=20to=20group=20=E2=80=94=20exceeds=2025-subcommand=20limit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The join hybrid_group has 34 subcommands which exceeds Discord's 25 subcommand limit for slash command groups. Since UserSlash already bridges all text commands to slash, the hybrid registration is redundant. Changed commands.hybrid_group → commands.group to avoid the ValueError. --- serverwhitelist/serverwhitelist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serverwhitelist/serverwhitelist.py b/serverwhitelist/serverwhitelist.py index 83868fe..1d17b84 100644 --- a/serverwhitelist/serverwhitelist.py +++ b/serverwhitelist/serverwhitelist.py @@ -2,7 +2,7 @@ ServerWhitelist v4.0 — The Ultimate Server Management Cog for Red-DiscordBot ============================================================================= -Owner-only hybrid commands to control which Discord servers the bot may +Owner-only commands to control which Discord servers the bot may operate in. Uses Red's Config for persistence and discord.py Views for interactive UI (paginated embeds, dropdowns, approval buttons, etc.). @@ -1058,7 +1058,7 @@ class ServerWhitelist(commands.Cog): # Command Group # ═══════════════════════════════════════════════════════════ - @commands.hybrid_group(name="join", invoke_without_command=True, fallback="add") + @commands.group(name="join", invoke_without_command=True) @commands.is_owner() async def join_group(self, ctx: commands.Context, server_id: int) -> None: """Add a server to the whitelist."""