#is there a way to typecast from `discord.User` to `discord.ext.commands.Bot`

1 messages · Page 1 of 1 (latest)

noble moat
#

i would like to be able to typecast a "user" class into a "bot" class so that i can get some basic info about it(like # of guilds) and # of users

lament nacelle
#

You can access the bot's user object with commands.Bot.user, if that's what you're looking for

crystal socket
#

You can not access a users number of guilds and so on if that's what you're asking.

noble moat
#

can you access a user's bot object (if you know what i mean) if the user is a bot account

gray hull
#

if you are using your bot i think the user's bot object is just a user object

proper flare
#

discord.bot is a subclass of discord.client

#

you can't just pretend other bots are your client