Browse Source
Use positional args for internal thread methods
pull/8076/head
Sebastian Law
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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) |
|
|
|
|
|
|
|
|
|
|
|