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:
@@ -183,11 +183,19 @@ class Automod(commands.Cog):
|
||||
""")
|
||||
await db.commit()
|
||||
|
||||
@commands.hybrid_group(invoke_without_command=True)
|
||||
@commands.hybrid_group(
|
||||
name="automod",
|
||||
aliases=["am"],
|
||||
invoke_without_command=True,
|
||||
with_app_command=True,
|
||||
description="Configure server Automod (enable, disable, punishments, ignores).",
|
||||
fallback="help",
|
||||
)
|
||||
@blacklist_check()
|
||||
@ignore_check()
|
||||
@commands.cooldown(1, 4, commands.BucketType.user)
|
||||
async def automod(self, ctx):
|
||||
"""Automod root — use `/automod <subcommand>` or `>automod <subcommand>`."""
|
||||
if ctx.subcommand_passed is None:
|
||||
await ctx.send_help(ctx.command)
|
||||
ctx.command.reset_cooldown(ctx)
|
||||
|
||||
Reference in New Issue
Block a user