Here is my code example.
@client.command()
async def test(ctx):
test = discord.Embed(
title=f"{ctx.author.avatar_url}",
#skip
)
await ctx.send(embed=test)
Instead of title
attribute set author
attribute using set_author()
method. Like this:
@client.command()
async def test(ctx):
test = discord.Embed()
test.set_author(name="title", icon_url=ctx.author.avatar_url)
await ctx.send(embed=test)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments