Skip to content

Commit

Permalink
Fix MessageSnapshot sticker_items typo
Browse files Browse the repository at this point in the history
  • Loading branch information
vionya authored Jan 15, 2025
1 parent 1646471 commit 55974eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion discord/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def __init__(self, state: ConnectionState, data: MessageSnapshotPayload):
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', []):
Expand Down
2 changes: 1 addition & 1 deletion discord/types/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]


Expand Down

0 comments on commit 55974eb

Please sign in to comment.