Skip to content

Commit 72262f3

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

discord/types/emoji.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,17 @@
3838
from .user import BaseUser
3939

4040
__all__ = (
41+
'PartialEmoji',
4142
'BaseEmoji',
4243
)
4344

4445

46+
class PartialEmoji(TypedDict):
47+
id: Optional[SnowflakeID] # The ID of the emoji
48+
name: Optional[str] # The emoji name
49+
animated: NotRequired[bool] # Whether this emoji is animated
50+
51+
4552
class BaseEmoji(TypedDict):
4653
id: Optional[SnowflakeID] # The ID of the emoji
4754
name: Optional[str] # The emoji name

0 commit comments

Comments
 (0)