user10873241
user10873241

Reputation:

How to find bot owner

I'm trying to make a command where you can say (prefix)owner <@bot> According to discord.py Docs about AppInfo, if i got it correctly, i must user discord.AppInfo and .owner to find the bot owner. But i get error discord.ext.commands.errors.BadArgument: Converting to "AppInfo" failed.! I'm not sure where I've gone wrong

@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")

Upvotes: 0

Views: 8554

Answers (1)

E962
E962

Reputation: 726

It is not possible to get that "private" information about other bots.

Upvotes: 3

Related Questions