Fix MessageSnapshot sticker_items typo

This commit is contained in:
Violet 2025-01-15 17:40:16 -06:00 committed by GitHub
parent 1646471ab8
commit 55974ebde8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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', []):

View File

@ -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]]