Skip to content
New issue

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

Trying to get the all the members #6047

Closed
1 of 4 tasks
Bryan-u-2 opened this issue Nov 16, 2020 · 1 comment
Closed
1 of 4 tasks

Trying to get the all the members #6047

Bryan-u-2 opened this issue Nov 16, 2020 · 1 comment
Labels
bug This is a bug with the library. intents related User provided bad/invalid intents

Comments

@Bryan-u-2
Copy link

Bryan-u-2 commented Nov 16, 2020

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

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.
  • I have provided the intents that my bot is using.

System Information

@Bryan-u-2 Bryan-u-2 added the bug This is a bug with the library. label Nov 16, 2020
@Bryan-u-2 Bryan-u-2 changed the title Can get the all the members Trying to get the all the members Nov 16, 2020
@Gobot1234
Copy link
Contributor

Duplicate of #5867.

@dpy-manager-bot dpy-manager-bot added the intents related User provided bad/invalid intents label Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is a bug with the library. intents related User provided bad/invalid intents
Projects
None yet
Development

No branches or pull requests

3 participants