src/cogs/roles.py
async def rcolour(self, ctx, colour):
        """Change the colour of your highest role.

        colour: hex
        The hexadecimal code of the colour to change to.
        """
        old_colour = ctx.author.top_role.colour
        colour = colour.replace('#', '')
        await ctx.author.top_role.edit(colour=discord.Colour(int(colour, 16)))
        embed = discord.Embed(
            colour=discord.Colour.blurple(),
            description="```diff\nRole colour changed:\n"
            f"- {old_colour}\n+ #{colour}\n```"
        )
        await ctx.reply(embed=embed)
Change the colour of your highest role.

        colour: hex
        The hexadecimal code of the colour to change to.
        
Change the colour of your highest role.
colour: hex
The hexadecimal code of the colour to change to.
Change the colour of your highest role . colour : hex The hexadecimal code of the colour to change to .
async def rcolour(self, ctx, colour):
        old_colour = ctx.author.top_role.colour
        colour = colour.replace('#', '')
        await ctx.author.top_role.edit(colour=discord.Colour(int(colour, 16)))
        embed = discord.Embed(
            colour=discord.Colour.blurple(),
            description="```diff\nRole colour changed:\n"
            f"- {old_colour}\n+ #{colour}\n```"
        )
        await ctx.reply(embed=embed)
async def rcolour ( self , ctx , colour ) : old_colour = ctx . author . top_role . colour colour = colour . replace ( '#' , '' ) await ctx . author . top_role . edit ( colour = discord . Colour ( int ( colour , 16 ) ) ) embed = discord . Embed ( colour = discord . Colour . blurple ( ) , description = "```diff\nRole colour changed:\n" f"- {old_colour}\n+ #{colour}\n```" ) await ctx . reply ( embed = embed )
Change the colour of your highest role.
Change the colour of your highest role .
"""Change the colour of your highest role.

        colour: hex
        The hexadecimal code of the colour to change to.
        """
self
ctx
colour