src/cogs/roles.py
async def rname(self, ctx, *, name: str):
        """Change the name of your highest role.

        name: str
        The name to change to. Cannot exceed 100 characters.
        """
        old_name = ctx.author.top_role.name
        await ctx.author.top_role.edit(name=name)
        embed = discord.Embed(
            colour=discord.Colour.blurple(),
            description="```diff\nRole name changed:\n"
            f"- {old_name}\n+ {name}\n```"
        )
        await ctx.reply(embed=embed)
Change the name of your highest role.

        name: str
        The name to change to. Cannot exceed 100 characters.
        
Change the name of your highest role.
name: str
The name to change to. Cannot exceed 100 characters.
Change the name of your highest role . name : str The name to change to . Cannot exceed 100 characters .
async def rname(self, ctx, *, name: str):
        old_name = ctx.author.top_role.name
        await ctx.author.top_role.edit(name=name)
        embed = discord.Embed(
            colour=discord.Colour.blurple(),
            description="```diff\nRole name changed:\n"
            f"- {old_name}\n+ {name}\n```"
        )
        await ctx.reply(embed=embed)
async def rname ( self , ctx , * , name : str ) : old_name = ctx . author . top_role . name await ctx . author . top_role . edit ( name = name ) embed = discord . Embed ( colour = discord . Colour . blurple ( ) , description = "```diff\nRole name changed:\n" f"- {old_name}\n+ {name}\n```" ) await ctx . reply ( embed = embed )
Change the name of your highest role.
Change the name of your highest role .
"""Change the name of your highest role.

        name: str
        The name to change to. Cannot exceed 100 characters.
        """
self
ctx
name
str