Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
add sticker items object to message
Browse files Browse the repository at this point in the history
  • Loading branch information
andersfylling committed Aug 7, 2021
1 parent 38e60d2 commit 78ff537
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions message.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ const (
MessageStickerFormatLOTTIE
)

type StickerItem struct {
ID Snowflake `json:"id"`
Name string `json:"name"`
FormatType MessageStickerFormatType `json:"format_type"`
}

type MessageSticker struct {
ID Snowflake `json:"id"`
PackID Snowflake `json:"pack_id"`
Expand Down Expand Up @@ -174,6 +180,7 @@ type Message struct {
MessageReference *MessageReference `json:"message_reference"`
ReferencedMessage *Message `json:"referenced_message"`
Flags MessageFlag `json:"flags"`
StickerItems []*StickerItem `json:"sticker_items"`
Stickers []*MessageSticker `json:"stickers"`
Components []*MessageComponent `json:"components"`
Interaction *MessageInteraction `json:"interaction"`
Expand Down

0 comments on commit 78ff537

Please sign in to comment.