Refactor command definitions across various cogs to replace hybrid commands with regular commands for improved consistency and clarity. Update command structures in moderation, music, and other cogs to enhance user experience and streamline command handling.
Some checks failed
CI / Bot (Python) (push) Successful in 12s
CI / Dashboard (Next.js) (push) Failing after 9s

This commit is contained in:
TheOnlyMace
2026-07-21 22:59:25 +02:00
parent a52d84467d
commit d24b810164
25 changed files with 436 additions and 90 deletions

View File

@@ -500,7 +500,23 @@ class Customrole(commands.Cog):
@commands.hybrid_command(name="staff",
@commands.hybrid_group(
name="customrole",
aliases=["cr"],
description="Assign or remove custom roles for members.",
fallback="help",
invoke_without_command=True,
)
@blacklist_check()
@ignore_check()
@commands.cooldown(1, 3, commands.BucketType.user)
async def customrole(self, context: Context):
"""Customrole root — use `/customrole <subcommand>` or `>customrole <subcommand>`."""
if context.subcommand_passed is None:
await context.send_help(context.command)
context.command.reset_cooldown(context)
@customrole.command(name="staff",
description="Gives the staff role to the user.",
aliases=['official'],
help="Gives the staff role to the user.")
@@ -511,7 +527,7 @@ class Customrole(commands.Cog):
async def _staff(self, context: Context, member: discord.Member) -> None:
await self.handle_role_command(context, member, 'staff')
@commands.hybrid_command(name="girl",
@customrole.command(name="girl",
description="Gives the girl role to the user.",
aliases=['qt'],
help="Gives the girl role to the user.")
@@ -522,7 +538,7 @@ class Customrole(commands.Cog):
async def _girl(self, context: Context, member: discord.Member) -> None:
await self.handle_role_command(context, member, 'girl')
@commands.hybrid_command(name="vip",
@customrole.command(name="vip",
description="Gives the VIP role to the user.",
help="Gives the VIP role to the user.")
@blacklist_check()
@@ -532,7 +548,7 @@ class Customrole(commands.Cog):
async def _vip(self, context: Context, member: discord.Member) -> None:
await self.handle_role_command(context, member, 'vip')
@commands.hybrid_command(name="guest",
@customrole.command(name="guest",
description="Gives the guest role to the user.",
help="Gives the guest role to the user.")
@blacklist_check()
@@ -542,7 +558,7 @@ class Customrole(commands.Cog):
async def _guest(self, context: Context, member: discord.Member) -> None:
await self.handle_role_command(context, member, 'guest')
@commands.hybrid_command(name="friend",
@customrole.command(name="friend",
description="Gives the friend role to the user.",
aliases=['frnd'],
help="Gives the friend role to the user.")