Answer the question
In order to leave comments, you need to log in
How to make embed.set_author, when trying to do it using the guide for November 2020, an error occurs?
Here is the same code, the error is in "_url) ) "
@bot.command()
async def task(ctx, *, content:str):
embed = discord.Embed(color = 0xff9900, title = f'Задание для жителей', description= f"{content}", embed.set_author(name=ctx.author.display_name, icon_url=ctx.author.avatar_url))
await ctx.send(embed = embed)
PS C:\Users\Админ\Desktop\pip> & C:/Users/Админ/AppData/Local/Programs/Python/Python39/python.exe c:/Users/Админ/Desktop/pip/main.py
File "c:\Users\Админ\Desktop\pip\main.py", line 21
await ctx.send(embed = embed)
^
SyntaxError: positional argument follows keyword argument
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question