Skip to content

Commit

Permalink
fix(message): stickers are partial only
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain committed Feb 10, 2024
1 parent 7f80bc7 commit ae665d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ type Message struct {
Thread *Channel `json:"thread,omitempty"`

// An array of Sticker objects, if any were sent.
StickerItems []*Sticker `json:"sticker_items"`
StickerItems []*StickerItem `json:"sticker_items"`
}

// UnmarshalJSON is a helper function to unmarshal the Message.
Expand Down
7 changes: 7 additions & 0 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,13 @@ type Sticker struct {
SortValue int `json:"sort_value"`
}

// StickerItem represents the smallest amount of data required to render a sticker. A partial sticker object.
type StickerItem struct {
ID string `json:"id"`
Name string `json:"name"`
FormatType StickerFormat `json:"format_type"`
}

// StickerPack represents a pack of standard stickers.
type StickerPack struct {
ID string `json:"id"`
Expand Down

0 comments on commit ae665d6

Please sign in to comment.