Skip to content

Commit

Permalink
Update thread.members on thread.fetch_members
Browse files Browse the repository at this point in the history
  • Loading branch information
Snawe authored and Lulalaby committed Jul 3, 2022
1 parent c305ec6 commit 9dc433a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion discord/threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,13 @@ async def fetch_members(self) -> List[ThreadMember]:
"""

members = await self._state.http.get_thread_members(self.id)
return [ThreadMember(parent=self, data=data) for data in members]

thread_members = [ThreadMember(parent=self, data=data) for data in members]

for member in thread_members:
self._add_member(member)

return thread_members

async def delete(self):
"""|coro|
Expand Down

0 comments on commit 9dc433a

Please sign in to comment.