Skip to content

Commit

Permalink
Fix Calling group.chunk raises "AttributeError: 'Group' object has no…
Browse files Browse the repository at this point in the history
… attribute '_partial_members'" #565
  • Loading branch information
Gobot1234 committed May 18, 2024
1 parent f27b6bc commit 113098b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions steam/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def __init__(self, state: ConnectionState, id: ChatGroupID):
self._id = self.id

async def chunk(self) -> Sequence[GroupMember]:
if self.chunked:
return self.members

self._members = dict.fromkeys(self._partial_members) # type: ignore
for id, member in self._partial_members.items():
user = self._state.get_user(id)
Expand Down

0 comments on commit 113098b

Please sign in to comment.