Documentation ¶
Index ¶
- type Embed
- func (e *Embed) AddBlankField(inline bool) *Embed
- func (e *Embed) AddField(title, content string, inline bool) *Embed
- func (e *Embed) SetAuthor(name, url, iconUrl string) *Embed
- func (e *Embed) SetColor(color int) *Embed
- func (e *Embed) SetDescription(description string) *Embed
- func (e *Embed) SetFooter(text, iconUrl string) *Embed
- func (e *Embed) SetImage(url string) *Embed
- func (e *Embed) SetProvider(name, url string) *Embed
- func (e *Embed) SetThumbnail(url string) *Embed
- func (e *Embed) SetTimestamp(timestamp time.Time) *Embed
- func (e *Embed) SetTitle(title string) *Embed
- func (e *Embed) SetUrl(url string) *Embed
- func (e *Embed) SetVideo(url string) *Embed
- type EmbedAuthor
- type EmbedField
- type EmbedFooter
- type EmbedImage
- type EmbedProvider
- type EmbedThumbnail
- type EmbedVideo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Embed ¶
type Embed struct { Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Url string `json:"url,omitempty"` Timestamp *time.Time `json:"timestamp,omitempty"` Color int `json:"color,omitempty"` Image *EmbedImage `json:"image,omitempty"` Thumbnail *EmbedThumbnail `json:"thumbnail,omitempty"` Video *EmbedVideo `json:"video,omitempty"` Provider *EmbedProvider `json:"provider,omitempty"` Author *EmbedAuthor `json:"author,omitempty"` Fields []*EmbedField `json:"fields,omitempty"` }
func (*Embed) AddBlankField ¶
func (*Embed) SetDescription ¶
func (*Embed) SetProvider ¶
func (*Embed) SetThumbnail ¶
type EmbedAuthor ¶
type EmbedField ¶
type EmbedFooter ¶
type EmbedFooter struct {}
type EmbedImage ¶
type EmbedProvider ¶
type EmbedThumbnail ¶
type EmbedVideo ¶
Click to show internal directories.
Click to hide internal directories.