Reputation: 33
I know some of the answers for this one would be:
for member in guild.members:
id = member.id
#do stuff here
But no, that doesn't work for me, I already tried that and it only has the bot itself inside of the list of members, though it does show the actual member count(but I'm not sure if that's useful in any way). So I'm asking if there is another way to do this.
Upvotes: 3
Views: 539
Reputation: 35512
The new Discord intents system broke a lot of things, so you need to make sure discord.py
is updated and you instantiate your client with all intents:
intents = discord.Intents.all()
client = discord.Client(intents=intents)
Upvotes: 3