feat: Require group prefix for hybrid commands

Added a _require_group_prefix check to all hybrid commands in each cog to ensure commands are only executed when invoked with the appropriate group prefix. Also updated error handling in bot.py to silently ignore CheckFailure errors. This improves command organization and prevents accidental command execution outside their intended context.
This commit is contained in:
neoarz
2025-09-29 09:59:56 -04:00
parent f8123b43a2
commit 3f4254dcdc
8 changed files with 154 additions and 0 deletions

2
bot.py
View File

@@ -283,6 +283,8 @@ class DiscordBot(commands.Bot):
color=0xE02B2B,
)
await context.send(embed=embed)
elif isinstance(error, commands.CheckFailure):
return
else:
raise error