Skip to content

Role.members always empty #2462

@Skarlett

Description

@Skarlett

Summary

getting members of roles is always empty

Reproduction Steps

@bot.listen
async def on_message(ctx):
  if ctx.guild:
    print(all(len(x.members) == 0 for x in ctx.guild.roles))

Expected Results

I expected to be able to pull each User from their associated role.

Actual Results

No traceback, just always empty.

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.

System Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    no reproCannot be reproduced.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions