title: How to get a user's avatar with their id in discord.py?
body: <p>I tried using the following code but it didn't work.</p>
  <pre><code>@bot.command()
  async def avatar(ctx,*, avamember):
      user = bot.get_user(avamember)
      await ctx.send(f&quot;{user.avatar_url}&quot;)
  </code></pre>
  <p>Edit: For anyone that had a similar problem, while not mentioned in the docs, discord.Member can take user ids aside from @username so there isn't any need for a complicated way.</p>