Browse Source

Fix MessageSnapshot sticker_items typo

pull/10082/head
Violet 3 months ago
committed by GitHub
parent
commit
55974ebde8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      discord/message.py
  2. 2
      discord/types/message.py

2
discord/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', []):

2
discord/types/message.py

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

Loading…
Cancel
Save