Browse Source

Fix Member.roles having None members

Signed-off-by: Depreca1ed <[email protected]>
pull/10107/head
Dep 2 months ago
committed by GitHub
parent
commit
4c3ce8fb85
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      discord/member.py

4
discord/member.py

@ -561,7 +561,9 @@ class Member(discord.abc.Messageable, _UserTag):
role = g.get_role(role_id)
if role:
result.append(role)
result.append(g.default_role)
default_role = g.default_role
if default_role:
result.append(default_role)
result.sort()
return result

Loading…
Cancel
Save