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

@@ -126,7 +126,7 @@ class Moderation(commands.Cog):
@commands.hybrid_command(name="unlockall",
@commands.command(name="unlockall",
help="Unlocks all channels in the Guild.",
usage="unlockall")
@blacklist_check()
@@ -211,7 +211,7 @@ class Moderation(commands.Cog):
@commands.hybrid_command(name="lockall",
@commands.command(name="lockall",
help="locks all the channels in Guild.",
usage="lockall")
@blacklist_check()
@@ -294,7 +294,7 @@ class Moderation(commands.Cog):
await ctx.send(embed=denied, mention_author=False)
@commands.hybrid_command(name="give",
@commands.command(name="give",
help="Gives the mentioned user a role.",
usage="give <user> <role>",
aliases=["addrole"])
@@ -364,7 +364,7 @@ class Moderation(commands.Cog):
@commands.hybrid_command(name="hideall", help="Hides all the channels .",
@commands.command(name="hideall", help="Hides all the channels .",
usage="hideall")
@blacklist_check()
@ignore_check()
@@ -442,7 +442,7 @@ class Moderation(commands.Cog):
icon_url=ctx.author.avatar.url if ctx.author.avatar else ctx.author.default_avatar.url)
await ctx.send(embed=denied, mention_author=False)
@commands.hybrid_command(name="unhideall", help="Unhides all the channels in the server.",
@commands.command(name="unhideall", help="Unhides all the channels in the server.",
usage="unhideall")
@blacklist_check()
@ignore_check()
@@ -522,7 +522,7 @@ class Moderation(commands.Cog):
@commands.hybrid_command(
@commands.command(
name="prefix",
aliases=["setprefix", "prefixset"],
help="Allows you to change the prefix of the bot for this server"
@@ -560,7 +560,7 @@ class Moderation(commands.Cog):
@commands.hybrid_command(name="clone", help="Clones a channel.")
@commands.command(name="clone", help="Clones a channel.")
@blacklist_check()
@ignore_check()
@commands.has_permissions(manage_channels=True)
@@ -604,7 +604,7 @@ class Moderation(commands.Cog):
await ctx.send(embed=error)
@commands.hybrid_command(name="nick",
@commands.command(name="nick",
aliases=['setnick'],
help="To change someone's nickname.",
usage="nick [member]")
@@ -680,7 +680,7 @@ class Moderation(commands.Cog):
await ctx.send(embed=error)
@commands.hybrid_command(name="nuke", help="Nukes a channel", usage="nuke")
@commands.command(name="nuke", help="Nukes a channel", usage="nuke")
@blacklist_check()
@ignore_check()
@top_check()
@@ -744,7 +744,7 @@ class Moderation(commands.Cog):
@commands.hybrid_command(name="slowmode",
@commands.command(name="slowmode",
help="Changes the slowmode",
usage="slowmode [seconds]",
aliases=["slow"])
@@ -774,7 +774,7 @@ class Moderation(commands.Cog):
await ctx.send(embed=embed)
@commands.hybrid_command(name="unslowmode",
@commands.command(name="unslowmode",
help="Disables slowmode",
usage="unslowmode",
aliases=["unslow"])
@@ -976,11 +976,10 @@ class Moderation(commands.Cog):
@commands.hybrid_command(name="unbanall",
@commands.command(name="unbanall",
help="Unbans Everyone In The Guild!",
aliases=['massunban'],
usage="Unbanall",
with_app_command=True)
usage="Unbanall")
@blacklist_check()
@ignore_check()
@commands.cooldown(1, 30, commands.BucketType.user)
@@ -1041,7 +1040,7 @@ class Moderation(commands.Cog):
view.add_item(button1)
await ctx.reply(embed=embed, view=view, mention_author=False)
@commands.hybrid_command(name="audit",
@commands.command(name="audit",
help="See recents audit log action in the server .")
@blacklist_check()
@ignore_check()