From 4dd50e2b0c421a677dddba71c161b975cff12c8c Mon Sep 17 00:00:00 2001 From: Oliver Ni Date: Sat, 19 Aug 2023 15:15:13 -0700 Subject: [PATCH] patch member flags support for gateway proxy --- discord/member.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/member.py b/discord/member.py index 04ce645c9bef..0690eab649f3 100644 --- a/discord/member.py +++ b/discord/member.py @@ -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: