title: Discord.py: Get user object with id
body: <p>I have a bot which only saves the id of a user (it's better working like that). Now I want to get the user-object from that id.</p>
  <p>I tried following which doesn't work for me, maybe I have made something wrong..</p>
  <pre><code>client = discord.Client
  client.get_user(id)
  </code></pre>
  <p>and <code>client.get_user_info(id)</code></p>
  <p>Here is the code:</p>
  <pre><code>import discord
  class MyClient(discord.Client):
      ntd = name_table.get_all_records() #google sheets api: returns a list of dicts
          async def on_message(self, message):
               print(message.content[1])
               if message.author == client.user:
                  return
               if isinstance(message.channel, discord.channel.DMChannel):
                  await self.handle_DM(message)
               if message.content[0] == &quot;/&quot;:
                  if message.content.split(&quot; &quot;)[0].lower() == &quot;/rank&quot;:
                     await self.rank_command(message)
         
         async def rank_command(self, message):
          if len(message.content.split(&quot; &quot;)) &lt; 2:
              await message.channel.send(
                  message.author.mention + &quot;/rank takes 2 or 3 arguments. Do '/rank ?' for help.&quot;)
          try:
              if message.content.split(&quot; &quot;)[1] == &quot;?&quot;:
                  await self.help(&quot;rank&quot;, message)
                  return
          except:
              pass
          try:
              if message.content.split(&quot; &quot;)[1] == &quot;top&quot;:
                  await self.top_rank_command(message)
                  return
          except:
              pass
       async def top_rank_command(message):
            print(&quot;Top rank entered&quot;)
            _user = await client.fetch_user(372746847393021953) #my id: Cluebo#2312
          print(_user)
          print(&quot;Top rank end&quot;)
  </code></pre>
  <p>Executing this, it will only print <code>&quot;Top rank entered&quot;</code> but not the <code>user</code> or <code>&quot;Top rank end&quot;</code>
  However, I did not get an error message. The method just stops there (The bot is running on Heroku).
  Thanks in advance!</p>