Skip to content

Commit

Permalink
🐛 Fix None default role in user installed apps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paillat-dev committed Nov 14, 2024
1 parent 85319f9 commit ea9d49d
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit ea9d49d

Please sign in to comment.