Skip to content

Commit

Permalink
patch member flags support for gateway proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Aug 19, 2023
1 parent 84c6691 commit 4dd50e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def __init__(self, *, data: MemberWithUserPayload, guild: Guild, state: Connecti
self.pending: bool = data.get('pending', False)
self._avatar: Optional[str] = data.get('avatar')
self._permissions: Optional[int]
self._flags: int = data['flags']
self._flags: int = data.get('flags', 0)
try:
self._permissions = int(data['permissions'])
except KeyError:
Expand Down

0 comments on commit 4dd50e2

Please sign in to comment.