Answer the question
In order to leave comments, you need to log in
How to solve the problem with the .userinfo command, where it gives incomprehensible arguments?
@bot.command()
async def user(ctx,member=discord.Member):
if member == None:
member = ctx.message.author
createdate = member.created_at
joindate = member.joined_at
embed = discord.Embed(title=f'Информация о пользователе {member.mention}.',description='')
embed.add_field(name='Никнейм:',value=member)
embed.add_field(name='Дата создания аккаунта:',value=createdate)
embed.add_field(name='Дата входа на сервер:',value=joindate)
embed.add_field(name="ID", value=member.id)
embed.set_footer(text=f"Запросил: {ctx.author}", icon_url=ctx.author.avatar_url)
await ctx.send(embed=embed)
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