Replies: 1 comment 2 replies
-
Make sure you have the members intent enabled and the guild is chunked. And this should be opened as an issue, not as a discussion. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is a discussion but it didn't have any responses so I made a new one.
I have this code:
@bot.command(name='members') async def _members(ctx, guild_id: int): guild = bot.get_guild(guild_id) for member in guild.members: await ctx.send(member.display_name)
For some reason the line returns aren't working, sorry for that, it's my first time making a thing like this.
I would expect it to return the display_name of everyone in the server right?
NO
yeah it only returns the bot's display name.
Could anyone help me with this?
Beta Was this translation helpful? Give feedback.
All reactions