ctx.author.avatar_url has "https://cdn.discordapp.com/avatars/185405355117903873/2133ec67021514b0bb0de712d88f5950.webp?size=1024" but it says discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: Embed.set_image() takes 1 positional argument but 2 were given
#I'm trying to set embed.set_image() from ctx.author.avatar_url but it says it has 2 arguments
1 messages · Page 1 of 1 (latest)
send the code please
this is the whole code to send the embed
#Funcion para mandar el embed
async def embed(ctx, des, color, name):
embed = discord.Embed(description= des,
timestamp=datetime.datetime.now(tz=madrid),
color= color)
embed.set_footer(text="Solicitado por: {}".format(ctx.author.name), icon_url=ctx.author.avatar_url)
embed.set_author(name= name)
embed.set_image(ctx.author.avatar_url)
await ctx.send(embed=embed)```
i want to set the image that has the red square
he sets an url but i want to take that url from the user who sends the command
change avatar_url to avatar.url
okay i'll try it
File "path\bot\main.py", line 19, in embed
embed.set_footer(text="Solicitado por: {}".format(ctx.author.name), icon_url=ctx.author.avatar.url)
AttributeError: 'str' object has no attribute 'url'
i get this error
any thoughts?
That’s a thumbnail
embed.set_thumbnail(url=url)
i'll try it
It is the red boxed image right
yep
i was wondering if it was thumbnail or image
so i wanted to try it
but get that error
It still gives it?
no it's fixed now
i think it was to set url=url
bcs last time i was just placing the embed.set_image(ctx.author.avatar_url)
Yep
hm?
is it normal to have this high ping?
¯_(ツ)_/¯
and it takes a few seconds to start the bot too
and i have a less than 100 lines of code xD
Bad host maybe?
i'm hosting it myself xD
Oh
starting it from vs code
No idea then sorry
no worries