title: How do we call the server icon as a embed thumbnail?
body: <p>I am trying to make a 'server information' command for my bot. However, it has refused to work with everything I have tried. Does anyone know how to send the icon of the server the bot's command is sent in via an <code>embed</code>?</p>
  <p>My code:</p>
  <pre><code>@bot.command(name='serverinfo', help='Information on your current server.')
  async def support(ctx, *args, user: discord.Member = None):
      if user is None:
          user = ctx.author
      
  
      embed = discord.Embed(title=&quot;**Server Information**&quot;, color=0x0d48a6)
      embed.set_thumbnail(url=ctx.guild.icon_url(format=&quot;png&quot;))
      await ctx.send(embed=embed)
  </code></pre>
  <p>Notes:</p>
  <ul>
  <li>Some removed to show where my main issue is</li>
  <li>User is for printing the UserID as the footer</li>
  </ul>