Skip to content

Commit ee41d1d

Browse files
committed
style(typing): Add WebhookUser type
Signed-off-by: Mathieu Corsham <[email protected]>
1 parent 6d552f1 commit ee41d1d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

discord/types/user.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
'BaseUser',
4242
'User',
4343
'ClientUser',
44+
'WebhookUser',
4445
'PartialMember',
4546
'Member',
4647
'MemberWithUser',
@@ -72,6 +73,12 @@ class ClientUser(User, total=False):
7273
# There are some other fields, but they are not usable by bots so empty
7374

7475

76+
class WebhookUser(TypedDict):
77+
id: SnowflakeID
78+
username: str
79+
avatar: Optional[str]
80+
81+
7582
class PartialMember(TypedDict):
7683
roles: SnowflakeList
7784
deaf: bool

0 commit comments

Comments
 (0)