#Get Guild Owner without guild members intent
1 messages · Page 1 of 1 (latest)
Not possible.
You NEED the intents.
You also need to enable them both in the Developer Portal, but also within the code.
A very simple way to do this is:
intents = discord.Intents.all()
bot = ...(intents=intents)
Ok c: as fas as I've seen that, it's still possible to get the id, right?
no.
why on earth would you want to NOT enable intents?
it saves so much time in the long run
Well if you want to get the ID, you're using the wrong thing. You should be using guild.owner.id instead of guild.owner. You need to enable the intents.
The intent is privileged, and I won't get the intent if my case is to get the owner name
guild.owner.id fails because guild.owner = None in most cases; however, guild.owner_id returns the correct id as far as I can see that - so my question is if this works in all cases
I could get the name via id then, right?
No. Again. You need the intent to get the name from the id
Just enable the intent...
Again, this intent is priviliged. Bots in more than 100 servers need to have a valid use case which getting the guild owner's name isn't.
is your bot in 100 servers?
Yes.
Yep, you just need to use guild.owner_id
I believe you can just use that id within fetch_user() to retrieve the owner's username
thanks