ctx.channel.members is not the same as ctx.guild.get_channel(ctx.channel_id).members #2685
Open
3 tasks done
Labels
unconfirmed bug
A bug report that needs triaging
Summary
The ctx.channel.members property is not right
Reproduction Steps
I was working on a discord.ui.View that needs
ctx.channel.members
, however it is giving the wrong result.So after that I made a test slash command to check if it was a bug, and yeah, turns out that something is wrong,
len(ctx.channel.members
is giving 712 while I am asking for the length of one private channel, which only 12 people can access that with view_channel and send_messages permissionsMinimal Reproducible Code
Expected Results
To give the members that have access to the current channel
Actual Results
It gave the members of the whole guild
Intents
discord.Intents.all() # all
System Information
Checklist
Additional Context
I went to the discord server and asked for this problem, and here are some snippets I got
This assertion gave me
True
This gave me
711 12
By the way, when I use
ctx.guild.get_channel(...).members
, it gives the correct result of 12The text was updated successfully, but these errors were encountered: