cogs/color/assignment.py
async def uncolor_server(self, ctx):
        """Remove all colors but not delete them."""

        colors = db.get(ctx.guild.id, "colors")
        cfg.heavy_command_active.add(ctx.guild.id)  # begin heavy command

        # Remove every role associated with a color
        for color in colors:
            if color["role"]:
                role = ctx.guild.get_role(color["role"])
                await role.delete()

        cfg.heavy_command_active.discard(ctx.guild.id)  # end heavy cmd

        # Send success message
        if ctx.guild.id not in cfg.suppress_output:
            embed = discord.Embed(title=f"Everyone has been uncolored {check_emoji()}",
                                  color=discord.Color.green())
            await ctx.send(embed=embed)
Remove all colors but not delete them.
Remove all colors but not delete them.
Remove all colors but not delete them .
async def uncolor_server(self, ctx):
        colors = db.get(ctx.guild.id, "colors")
        cfg.heavy_command_active.add(ctx.guild.id)  
        for color in colors:
            if color["role"]:
                role = ctx.guild.get_role(color["role"])
                await role.delete()
        cfg.heavy_command_active.discard(ctx.guild.id)  
        if ctx.guild.id not in cfg.suppress_output:
            embed = discord.Embed(title=f"Everyone has been uncolored {check_emoji()}",
                                  color=discord.Color.green())
            await ctx.send(embed=embed)
async def uncolor_server ( self , ctx ) : colors = db . get ( ctx . guild . id , "colors" ) cfg . heavy_command_active . add ( ctx . guild . id ) for color in colors : if color [ "role" ] : role = ctx . guild . get_role ( color [ "role" ] ) await role . delete ( ) cfg . heavy_command_active . discard ( ctx . guild . id ) if ctx . guild . id not in cfg . suppress_output : embed = discord . Embed ( title = f"Everyone has been uncolored {check_emoji()}" , color = discord . Color . green ( ) ) await ctx . send ( embed = embed )
Remove all colors but not delete them.
Remove all colors but not delete them .
"""Remove all colors but not delete them.""" # begin heavy command # Remove every role associated with a color # end heavy cmd # Send success message
self
ctx