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.
This commit is contained in:
@@ -378,7 +378,12 @@ class TicketCog(commands.Cog, name="Ticket System"):
|
||||
await ch.send(content=" ".join(pings), embed=ticket_embed, view=TicketActionsView(self, ch.id, cat_id))
|
||||
await inter.followup.send(f"Your ticket has been successfully created: {ch.mention}", ephemeral=True)
|
||||
|
||||
@commands.hybrid_group(name="ticket", description="Main command group for the ticket system.")
|
||||
@commands.hybrid_group(
|
||||
name="ticket",
|
||||
description="Main command group for the ticket system.",
|
||||
fallback="help",
|
||||
invoke_without_command=True,
|
||||
)
|
||||
@commands.guild_only()
|
||||
async def ticket(self, ctx):
|
||||
if ctx.invoked_subcommand is None: await ctx.send_help(ctx.command)
|
||||
|
||||
Reference in New Issue
Block a user