cogs/color/management.py
def cog_check(self, ctx):
        """Ensure user has permissions and heavy command is not active for cog commands."""
        if not ctx.author.guild_permissions.manage_roles:
            raise CommandError(f"You need Manage Roles permission")
        if ctx.guild.id in cfg.heavy_command_active:
            raise CommandError("Please wait for the current command to finish")
        return True
Ensure user has permissions and heavy command is not active for cog commands.
Ensure user has permissions and heavy command is not active for cog commands.
Ensure user has permissions and heavy command is not active for cog commands .
def cog_check(self, ctx):
        if not ctx.author.guild_permissions.manage_roles:
            raise CommandError(f"You need Manage Roles permission")
        if ctx.guild.id in cfg.heavy_command_active:
            raise CommandError("Please wait for the current command to finish")
        return True
def cog_check ( self , ctx ) : if not ctx . author . guild_permissions . manage_roles : raise CommandError ( f"You need Manage Roles permission" ) if ctx . guild . id in cfg . heavy_command_active : raise CommandError ( "Please wait for the current command to finish" ) return True
Ensure user has permissions and heavy command is not active for cog commands.
Ensure user has permissions and heavy command is not active for cog commands .
"""Ensure user has permissions and heavy command is not active for cog commands."""
self
ctx