Browse Source
Fix MessageSnapshot sticker_items typo
pull/10082/head
Violet
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
discord/message.py
-
discord/types/message.py
|
|
@ -528,7 +528,7 @@ class MessageSnapshot: |
|
|
|
self.created_at: datetime.datetime = utils.parse_time(data['timestamp']) |
|
|
|
self._edited_timestamp: Optional[datetime.datetime] = utils.parse_time(data['edited_timestamp']) |
|
|
|
self.flags: MessageFlags = MessageFlags._from_value(data.get('flags', 0)) |
|
|
|
self.stickers: List[StickerItem] = [StickerItem(data=d, state=state) for d in data.get('stickers_items', [])] |
|
|
|
self.stickers: List[StickerItem] = [StickerItem(data=d, state=state) for d in data.get('sticker_items', [])] |
|
|
|
|
|
|
|
self.components: List[MessageComponentType] = [] |
|
|
|
for component_data in data.get('components', []): |
|
|
|
|
|
@ -187,7 +187,7 @@ class MessageSnapshot(TypedDict): |
|
|
|
flags: NotRequired[int] |
|
|
|
mentions: List[UserWithMember] |
|
|
|
mention_roles: SnowflakeList |
|
|
|
stickers_items: NotRequired[List[StickerItem]] |
|
|
|
sticker_items: NotRequired[List[StickerItem]] |
|
|
|
components: NotRequired[List[Component]] |
|
|
|
|
|
|
|
|
|
|
|