Browse Source

Add missing annotation for ThreadMember.id

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

1
discord/threads.py

@ -818,6 +818,7 @@ class ThreadMember(Hashable):
return f'<ThreadMember id={self.id} thread_id={self.thread_id} joined_at={self.joined_at!r}>' return f'<ThreadMember id={self.id} thread_id={self.thread_id} joined_at={self.joined_at!r}>'
def _from_data(self, data: ThreadMemberPayload) -> None: def _from_data(self, data: ThreadMemberPayload) -> None:
self.id: int
try: try:
self.id = int(data['user_id']) self.id = int(data['user_id'])
except KeyError: except KeyError:

Loading…
Cancel
Save