Browse Source

Use positional args for internal thread methods

pull/8076/head
Sebastian Law 3 years ago
committed by GitHub
parent
commit
f19f51f771
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      discord/threads.py

4
discord/threads.py

@ -751,10 +751,10 @@ class Thread(Messageable, Hashable):
return PartialMessage(channel=self, id=message_id)
def _add_member(self, member: ThreadMember) -> None:
def _add_member(self, member: ThreadMember, /) -> None:
self._members[member.id] = member
def _pop_member(self, member_id: int) -> Optional[ThreadMember]:
def _pop_member(self, member_id: int, /) -> Optional[ThreadMember]:
return self._members.pop(member_id, None)

Loading…
Cancel
Save