Skip to content Skip to sidebar Skip to footer

How Do I Get A List Of All Of The Members In A Discord Server Using Discord.py

I am trying to generate a list of all of the members in my server: @client.event async def on_ready(): for guild in client.guilds: for member in guild.members:

Solution 1:

You need to enable intents.members

intents = discord.Intents.default()
intents.members = True

client = commands.Bot(..., intents=intents)
# Or if you're using `discord.Client`
client = discord.Client(intents=intents)

Also make sure to enable them in the developer portal

docs

Post a Comment for "How Do I Get A List Of All Of The Members In A Discord Server Using Discord.py"