Skip to content

Commit

Permalink
Merge branch 'jomei:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurdotwork authored Feb 17, 2025
2 parents 6b4f0f2 + 8b84b91 commit 5dea6dd
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions object.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,11 @@ type FileObject struct {
}

type Icon struct {
Type FileType `json:"type"`
Emoji *Emoji `json:"emoji,omitempty"`
File *FileObject `json:"file,omitempty"`
External *FileObject `json:"external,omitempty"`
Type FileType `json:"type"`
Emoji *Emoji `json:"emoji,omitempty"`
CustomEmoji *CustomEmoji `json:"custom_emoji,omitempty"`
File *FileObject `json:"file,omitempty"`
External *FileObject `json:"external,omitempty"`
}

// GetURL returns the external or internal URL depending on the image type.
Expand All @@ -180,6 +181,12 @@ func (i Icon) GetURL() string {

type Emoji string

type CustomEmoji struct {
ID string `json:"id"`
Name string `json:"name"`
URL string `json:"url"`
}

type PropertyID string

func (pID PropertyID) String() string {
Expand Down

0 comments on commit 5dea6dd

Please sign in to comment.