Я пытаюсь создать команду, в которой вы можете сказать (префикс) владельца <@bot> В соответствии с документами discord.py об AppInfo, , если я правильно понял, я должен ввести пользователя discord.AppInfo
и .owner
чтобы найти владельца бота.Но я получаю ошибку discord.ext.commands.errors.BadArgument: Converting to "AppInfo" failed.
!Я не уверен, где я ошибся
@client.command(pass_context=True)
async def owner(ctx,app:discord.AppInfo):
if app.bot==True:
try:
await client.say(f"Bot owner is: {app.owner}")
except Exception as e:
await client.say(e)
else:
await client.say("Not a bot")