Documentation ¶
Overview ¶
Package embed contains a builder pattern for Embed building
Index ¶
- type Embed
- func (embed *Embed) AddField(title, content string, inline bool) *Embed
- func (embed *Embed) SetAuthor(author, url, icon string) *Embed
- func (embed *Embed) SetColor(c *colors.Color) *Embed
- func (embed *Embed) SetColorRGB(r, g, b int) *Embed
- func (embed *Embed) SetDesc(desc string) *Embed
- func (embed *Embed) SetDescription(desc string) *Embed
- func (embed *Embed) SetFooter(footer string) *Embed
- func (embed *Embed) SetImage(url string) *Embed
- func (embed *Embed) SetThumbnail(url string) *Embed
- func (embed *Embed) SetTimestamp(time time.Time) *Embed
- func (embed *Embed) SetTitle(title string) *Embed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Embed ¶
type Embed struct {
*discordgo.MessageEmbed
}
An Embed is a struct that contains a pointer to a discordgo Embed object
func (*Embed) AddField ¶
AddField adds a field with a title, content, and a flag to indicate whether or not it's inline with the rest of the fields on this line (3 max)
func (*Embed) SetAuthor ¶
SetAuthor sets the author field, consisting of a Title, Direct Link, and small Icon
func (*Embed) SetColorRGB ¶
SetColorRGB sets the color of the embed with given 0-256 RGB ints
func (*Embed) SetDescription ¶
SetDescription sets the description of the embed
func (*Embed) SetThumbnail ¶
SetThumbnail sets the thumbnail of this embed to a URL
func (*Embed) SetTimestamp ¶
SetTimestamp sets the timestamp to a certain Time's String() value
Click to show internal directories.
Click to hide internal directories.