src/cogs/misc.py
async def user_info(self, ctx, user: discord.Member = None):
        """Return information about a user.

        user: mention or userid
        The user to show information about. Leave blank for youself.
        """
        user = user or ctx.author
        name = str(user)

        if user.nick:
            name = f'{user.nick} ({user.name})'
        else:
            name = user.name

        roles = ', '.join(role.mention for role in user.roles[1:])

        embed = discord.Embed(
            title=name,
            colour=user.colour if roles else discord.Colour.blurple()
        )

        embed.set_thumbnail(url=user.avatar_url)

        embed.add_field(
            name='User Information',
            value=f"""
            Username: {user}
            ID: {user.id}
            Created: {functions.date(user.created_at)}
            """,
            inline=False
        )

        embed.add_field(
            name='Member Information',
            value=f"""
            Joined: {functions.date(user.joined_at)}
            Roles: {roles or None}
            """,
            inline=False
        )

        await ctx.send(embed=embed)
Return information about a user.

        user: mention or userid
        The user to show information about. Leave blank for youself.
        
Return information about a user.
user: mention or userid
The user to show information about. Leave blank for youself.
Return information about a user . user : mention or userid The user to show information about . Leave blank for youself .
async def user_info(self, ctx, user: discord.Member = None):
        user = user or ctx.author
        name = str(user)
        if user.nick:
            name = f'{user.nick} ({user.name})'
        else:
            name = user.name
        roles = ', '.join(role.mention for role in user.roles[1:])
        embed = discord.Embed(
            title=name,
            colour=user.colour if roles else discord.Colour.blurple()
        )
        embed.set_thumbnail(url=user.avatar_url)
        embed.add_field(
            name='User Information',
            value=f"""
            Username: {user}
            ID: {user.id}
            Created: {functions.date(user.created_at)}
            """,
            inline=False
        )
        embed.add_field(
            name='Member Information',
            value=f"""
            Joined: {functions.date(user.joined_at)}
            Roles: {roles or None}
            """,
            inline=False
        )
        await ctx.send(embed=embed)
async def user_info ( self , ctx , user : discord . Member = None ) : user = user or ctx . author name = str ( user ) if user . nick : name = f'{user.nick} ({user.name})' else : name = user . name roles = ', ' . join ( role . mention for role in user . roles [ 1 : ] ) embed = discord . Embed ( title = name , colour = user . colour if roles else discord . Colour . blurple ( ) ) embed . set_thumbnail ( url = user . avatar_url ) embed . add_field ( name = 'User Information' , value = f"""
            Username: {user}
            ID: {user.id}
            Created: {functions.date(user.created_at)}
            """ , inline = False ) embed . add_field ( name = 'Member Information' , value = f"""
            Joined: {functions.date(user.joined_at)}
            Roles: {roles or None}
            """ , inline = False ) await ctx . send ( embed = embed )
Return information about a user.
Return information about a user .
"""Return information about a user.

        user: mention or userid
        The user to show information about. Leave blank for youself.
        """
self
ctx
user
discord.Member