mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add missing annotation for ThreadMember.id
This commit is contained in:
1 parent
e01d4a31eb
commit
caf2000fe8
1 file changed
+1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user