Discord.py: Role.members always empty

Created on 4 Dec 2019  路  1Comment  路  Source: Rapptz/discord.py

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

  • [x] I have searched the open issues for duplicates.
  • [x] I have shown the entire traceback, if possible.
  • [x] I have removed my token from display, if visible.

System Information

  • Python v3.7.4-final
  • discord.py v1.2.5-final
  • aiohttp v3.5.4
  • websockets v6.0
  • system info: Linux 4.19.84-1-MANJARO #1 SMP PREEMPT Wed Nov 13 00:07:37 UTC 2019
no repro

Most helpful comment

I can't reproduce this.

>All comments

I can't reproduce this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danshat picture danshat  路  3Comments

MrBrahm picture MrBrahm  路  3Comments

Nicba1010 picture Nicba1010  路  3Comments

Spyder-exe picture Spyder-exe  路  3Comments

Be4Vision picture Be4Vision  路  3Comments