'How can I set an image or thumbnail as the bot's avatar in discord.py embed?

Is it possible to set the embed image as the bot's profile picture?

If user's:

embed=discord.Embed(title="This is my profile pick")
embed.set_author(name="name", icon_url=ctx.author.avatar.url)

so if I wanted to set thumbnail or image as bot's avatar, what would would I do?

I tried:

embed.set_author(name=bot.name, icon_url=bot.avatar.url)

but it does not work. How can I this?



Solution 1:[1]

You need to access the user attribute on your bot first.

embed.set_author(name="name", icon_url=bot.user.avatar.url)

Or

embed.set_author(name="name", icon_url=bot.user.avatar_url)

Depending on your discord.py version.

Solution 2:[2]

enter image description here

^ ^ ^ After add thumbnail for thumbnail add this embed.set_thumbnail(url=ctx.author.avatar_url)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 LucasPlusPlus