Documentation ¶
Index ¶
- type Embed
- func (e *Embed) AddField(name, value string, inline bool) *Embed
- func (e *Embed) AddFields(fields ...*discordgo.MessageEmbedField) *Embed
- func (e *Embed) AddFieldsFromMap(fields map[string]string, inline bool) *Embed
- func (e *Embed) SetAuthor(name, url, iconURL string) *Embed
- func (e *Embed) SetColor(color int) *Embed
- func (e *Embed) SetColorHex(hex string) *Embed
- func (e *Embed) SetColorRGB(r, g, b 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) 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Embed ¶
type Embed struct {
*discordgo.MessageEmbed
}
func NewErrorEmbed ¶
func NewGenericEmbed ¶
func NewSuccessEmbed ¶
func NewWarningEmbed ¶
func (*Embed) AddFieldsFromMap ¶
func (*Embed) SetColorHex ¶
func (*Embed) SetColorRGB ¶
func (*Embed) SetDescription ¶
func (*Embed) SetThumbnail ¶
Click to show internal directories.
Click to hide internal directories.