diff --git a/CHANGELOG.md b/CHANGELOG.md index bc995ffd76..a9547fbafc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/discord/member.py b/discord/member.py index f1a546c918..0ff90cce04 100644 --- a/discord/member.py +++ b/discord/member.py @@ -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