fix(serverwhitelist): convert hybrid_group to group — exceeds 25-subcommand limit

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.
This commit is contained in:
Viktor 2026-05-14 20:34:04 +00:00
parent d20f988a93
commit 180121bbdc

View file

@ -2,7 +2,7 @@
ServerWhitelist v4.0 — The Ultimate Server Management Cog for Red-DiscordBot 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 operate in. Uses Red's Config for persistence and discord.py Views for
interactive UI (paginated embeds, dropdowns, approval buttons, etc.). interactive UI (paginated embeds, dropdowns, approval buttons, etc.).
@ -1058,7 +1058,7 @@ class ServerWhitelist(commands.Cog):
# Command Group # Command Group
# ═══════════════════════════════════════════════════════════ # ═══════════════════════════════════════════════════════════
@commands.hybrid_group(name="join", invoke_without_command=True, fallback="add") @commands.group(name="join", invoke_without_command=True)
@commands.is_owner() @commands.is_owner()
async def join_group(self, ctx: commands.Context, server_id: int) -> None: async def join_group(self, ctx: commands.Context, server_id: int) -> None:
"""Add a server to the whitelist.""" """Add a server to the whitelist."""