go-mstdn/ent/customemoji.go

18 lines
540 B
Go
Raw Permalink Normal View History

2023-09-26 05:29:10 +00:00
package ent
2023-09-26 04:21:46 +00:00
import (
"github.com/reiver/go-opt"
2023-09-26 04:21:46 +00:00
)
// CustomEmoji represents a Mastodon API "CustomEmoji".
//
// See:
// https://docs.joinmastodon.org/entities/CustomEmoji/
type CustomEmoji struct {
2024-08-08 18:22:53 +00:00
ShortCode opt.Optional[string] `json:"shortcode,omitempty"`
URL opt.Optional[string] `json:"url,omitempty"`
StaticURL opt.Optional[string] `json:"static_url,omitempty"`
VisibleInPicker opt.Optional[bool] `json:"visible_in_picker,omitempty"`
Category opt.Optional[string] `json:"category,omitempty"`
2023-09-26 04:21:46 +00:00
}