We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to generate list of all members but its not working as intented
import discord from discord.ext import commands
prefix = '.' bot = commands.Bot(prefix)
@bot.event async def on_ready(): for member in bot.get_all_members(): print(member)
bot.run("...")
It should print out user names of all the members in a server
Nameofthebot#2342 the name of the bot is repeated for the total number of the server
The text was updated successfully, but these errors were encountered:
Duplicate of #5867.
Sorry, something went wrong.
No branches or pull requests
Summary
I am trying to generate list of all members but its not working as intented
Reproduction Steps
import discord
from discord.ext import commands
prefix = '.'
bot = commands.Bot(prefix)
@bot.event
async def on_ready():
for member in bot.get_all_members():
print(member)
bot.run("...")
Expected Results
It should print out user names of all the members in a server
Actual Results
Nameofthebot#2342
the name of the bot is repeated for the total number of the server
Intents
Checklist
System Information
The text was updated successfully, but these errors were encountered: