File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -161,10 +161,11 @@ type FileObject struct {
161161}
162162
163163type Icon struct {
164- Type FileType `json:"type"`
165- Emoji * Emoji `json:"emoji,omitempty"`
166- File * FileObject `json:"file,omitempty"`
167- External * FileObject `json:"external,omitempty"`
164+ Type FileType `json:"type"`
165+ Emoji * Emoji `json:"emoji,omitempty"`
166+ CustomEmoji * CustomEmoji `json:"custom_emoji,omitempty"`
167+ File * FileObject `json:"file,omitempty"`
168+ External * FileObject `json:"external,omitempty"`
168169}
169170
170171// GetURL returns the external or internal URL depending on the image type.
@@ -180,6 +181,12 @@ func (i Icon) GetURL() string {
180181
181182type Emoji string
182183
184+ type CustomEmoji struct {
185+ ID string `json:"id"`
186+ Name string `json:"name"`
187+ URL string `json:"url"`
188+ }
189+
183190type PropertyID string
184191
185192func (pID PropertyID ) String () string {
You can’t perform that action at this time.
0 commit comments