mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Add missing annotation for ThreadMember.id
This commit is contained in:
parent
e01d4a31eb
commit
caf2000fe8
@ -818,6 +818,7 @@ class ThreadMember(Hashable):
|
||||
return f'<ThreadMember id={self.id} thread_id={self.thread_id} joined_at={self.joined_at!r}>'
|
||||
|
||||
def _from_data(self, data: ThreadMemberPayload) -> None:
|
||||
self.id: int
|
||||
try:
|
||||
self.id = int(data['user_id'])
|
||||
except KeyError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user