Skip to content

Commit bb750a5

Browse files
authored
feat: add position to Message (#957)
1 parent bd9c0de commit bb750a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interactions/api/models/message.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ class Message(ClientSerializerMixin, IDMixin):
842842
:ivar Optional[Union[Component, List[Component]]] components?: Components associated with this message, if any.
843843
:ivar Optional[List[PartialSticker]] sticker_items?: An array of message sticker item objects, if sent with them.
844844
:ivar Optional[List[Sticker]] stickers?: Array of sticker objects sent with the message if any. Deprecated.
845+
:ivar Optional[int] position?: The approximate position of the message in a thread.
845846
"""
846847

847848
id: Snowflake = field(converter=Snowflake)
@@ -889,6 +890,7 @@ class Message(ClientSerializerMixin, IDMixin):
889890
stickers: Optional[List[Sticker]] = field(
890891
converter=convert_list(Sticker), default=None
891892
) # deprecated
893+
position: Optional[int] = field(default=None)
892894

893895
async def get_channel(self) -> Channel:
894896
"""

0 commit comments

Comments
 (0)