Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ These changes are available on the `master` branch, but have not yet been releas
([#2627](https://github.com/Pycord-Development/pycord/issues/2627))
- Fixed `AttributeError` when sending polls with `PartialWebook`.
([#2624](https://github.com/Pycord-Development/pycord/pull/2624))
- Fixed `AttributeError` when accessing `Member.guild_permissions` for user installed
apps. ([#2650](https://github.com/Pycord-Development/pycord/pull/2650))

### Changed

Expand Down
3 changes: 2 additions & 1 deletion discord/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,8 @@ def roles(self) -> list[Role]:
role = g.get_role(role_id)
if role:
result.append(role)
result.append(g.default_role)
if g.default_role:
result.append(g.default_role)
result.sort()
return result

Expand Down