Implement slash command synchronization features in environment files and update command definitions to hybrid commands across various cogs. Enhance command registration for improved user experience and streamline command handling in the bot.
This commit is contained in:
@@ -115,7 +115,7 @@ class Moderation(commands.Cog):
|
||||
|
||||
|
||||
|
||||
@commands.command()
|
||||
@commands.hybrid_command()
|
||||
@blacklist_check()
|
||||
@ignore_check()
|
||||
@commands.cooldown(1, 3, commands.BucketType.user)
|
||||
@@ -793,7 +793,7 @@ class Moderation(commands.Cog):
|
||||
|
||||
|
||||
|
||||
@commands.command(aliases=["deletesticker", "removesticker"], description="Delete the sticker from the server")
|
||||
@commands.hybrid_command(aliases=["deletesticker", "removesticker"], description="Delete the sticker from the server")
|
||||
@blacklist_check()
|
||||
@ignore_check()
|
||||
@commands.cooldown(1, 3, commands.BucketType.user)
|
||||
@@ -815,7 +815,7 @@ class Moderation(commands.Cog):
|
||||
await ctx.reply("Failed to delete the sticker")
|
||||
|
||||
|
||||
@commands.command(aliases=["deleteemoji", "removeemoji"], description="Deletes the emoji from the server")
|
||||
@commands.hybrid_command(aliases=["deleteemoji", "removeemoji"], description="Deletes the emoji from the server")
|
||||
@blacklist_check()
|
||||
@ignore_check()
|
||||
@commands.cooldown(1, 3, commands.BucketType.user)
|
||||
@@ -864,7 +864,7 @@ class Moderation(commands.Cog):
|
||||
|
||||
|
||||
|
||||
@commands.command(description="Changes the icon for the role.")
|
||||
@commands.hybrid_command(description="Changes the icon for the role.")
|
||||
@blacklist_check()
|
||||
@ignore_check()
|
||||
@commands.cooldown(1, 3, commands.BucketType.user)
|
||||
|
||||
Reference in New Issue
Block a user