Documentation
¶
Index ¶
- Constants
- type Embed
- func (e *Embed) AddField(name, value string, inline bool) *Embed
- func (e *Embed) EmbedColor(c int) *Embed
- func (e *Embed) EmbedDescription(d string) *Embed
- func (e *Embed) EmbedFooter(text, icon, proxy string) *Embed
- func (e *Embed) EmbedTimestamp(t time.Time) *Embed
- func (e *Embed) EmbedTitle(t string) *Embed
- func (e *Embed) EmbedURL(s string) *Embed
- type Error
Constants ¶
View Source
const ( TitleLimit = 256 DescLimit = 2048 FieldLimit = 25 FieldNameLimit = 256 FieldValueLimit = 1024 AuthorNameLimit = 256 TotalCharLimit = 6000 )
definitions of embed element limits https://discordapp.com/developers/docs/resources/channel#embed-limits
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Embed ¶
type Embed struct { *discordgo.MessageEmbed // contains filtered or unexported fields }
Struct that wraps functionality around a discordgo message embed
func (*Embed) EmbedDescription ¶
Set the embed description
func (*Embed) EmbedFooter ¶
Set the footer of the embed
func (*Embed) EmbedTimestamp ¶
Add a custom timestamp to the embed footer
Click to show internal directories.
Click to hide internal directories.