original_docstring: Get information about a member of a server
          supports users from the guild or not.
docstring: Get information about a member of a server
  supports users from the guild or not.
docstring_tokens: Get information about a member of a server supports users from the guild or not .
code: def format_info(self, message):
          """Get information about a member of a server
          supports users from the guild or not."""
          user = message.author
          server = self.guild
          member = self.guild.get_member(user.id)
          avi = user.avatar_url
          time = datetime.datetime.utcnow()
          desc = f'{user.mention} has started a thread.'
          color = discord.Color.blurple()
  
          if member:
              roles = sorted(member.roles, key=lambda c: c.position)
              rolenames = ' '.join([r.mention for r in roles if r.name != "@everyone"])
              member_number = sorted(server.members, key=lambda m: m.joined_at).index(member) + 1
              for role in roles:
                  if str(role.color) != "#000000":
                      color = role.color
  
          em = discord.Embed(colour=color, description=desc, timestamp=time)
  
          days = lambda d: (' day ago.' if d == '1' else ' days ago.')
  
          created = str((time - user.created_at).days)
          # em.add_field(name='Mention', value=user.mention)
          em.add_field(name='Registered', value=created + days(created))
          footer = 'User ID: '+str(user.id)
          em.set_footer(text=footer)
          em.set_thumbnail(url=avi)
          em.set_author(name=str(user), icon_url=avi)
  
          if member:
              joined = str((time - member.joined_at).days)
              em.add_field(name='Joined', value=joined + days(joined))
              em.add_field(name='Member No.',value=str(member_number),inline = True)
              em.add_field(name='Nickname', value=member.nick, inline=True)
              if rolenames:
                  em.add_field(name='Roles', value=rolenames, inline=False)
          else:
              em.set_footer(text=footer+' | Note: this member is not part of this server.')
          
  
          return em
code_tokens: def format_info ( self , message ) : user = message . author server = self . guild member = self . guild . get_member ( user . id ) avi = user . avatar_url time = datetime . datetime . utcnow ( ) desc = f'{user.mention} has started a thread.' color = discord . Color . blurple ( ) if member : roles = sorted ( member . roles , key = lambda c : c . position ) rolenames = ' ' . join ( [ r . mention for r in roles if r . name != "@everyone" ] ) member_number = sorted ( server . members , key = lambda m : m . joined_at ) . index ( member ) + 1 for role in roles : if str ( role . color ) != "#000000" : color = role . color em = discord . Embed ( colour = color , description = desc , timestamp = time ) days = lambda d : ( ' day ago.' if d == '1' else ' days ago.' ) created = str ( ( time - user . created_at ) . days ) em . add_field ( name = 'Registered' , value = created + days ( created ) ) footer = 'User ID: ' + str ( user . id ) em . set_footer ( text = footer ) em . set_thumbnail ( url = avi ) em . set_author ( name = str ( user ) , icon_url = avi ) if member : joined = str ( ( time - member . joined_at ) . days ) em . add_field ( name = 'Joined' , value = joined + days ( joined ) ) em . add_field ( name = 'Member No.' , value = str ( member_number ) , inline = True ) em . add_field ( name = 'Nickname' , value = member . nick , inline = True ) if rolenames : em . add_field ( name = 'Roles' , value = rolenames , inline = False ) else : em . set_footer ( text = footer + ' | Note: this member is not part of this server.' ) return em
short_docstring: Get information about a member of a server
  supports users from the guild or not.
short_docstring_tokens: Get information about a member of a server supports users from the guild or not .
comment: """Get information about a member of a server
          supports users from the guild or not."""$SEP$# em.add_field(name='Mention', value=user.mention)