common/utils.py
async def convert(self, ctx, arg):
        """Find a color in a list of colors based on a query"""
        colors = db.get(ctx.guild.id, "colors")
        if not colors:
            raise CommandError("You have no active colors")

        color = color_lookup(arg, colors)
        if not color:
            raise CommandError("Color Not Found")

        return color
Find a color in a list of colors based on a query
Find a color in a list of colors based on a query
Find a color in a list of colors based on a query
async def convert(self, ctx, arg):
        colors = db.get(ctx.guild.id, "colors")
        if not colors:
            raise CommandError("You have no active colors")
        color = color_lookup(arg, colors)
        if not color:
            raise CommandError("Color Not Found")
        return color
async def convert ( self , ctx , arg ) : colors = db . get ( ctx . guild . id , "colors" ) if not colors : raise CommandError ( "You have no active colors" ) color = color_lookup ( arg , colors ) if not color : raise CommandError ( "Color Not Found" ) return color
Find a color in a list of colors based on a query
Find a color in a list of colors based on a query
"""Find a color in a list of colors based on a query"""
self
ctx
arg