Documentation ¶
Index ¶
- Constants
- type Embed
- func (e *Embed) AddField(name, value string) *Embed
- func (e *Embed) AppendToFooter(str string) *Embed
- func (e *Embed) InlineAllFields() *Embed
- func (e *Embed) IsEmpty() bool
- func (e *Embed) SetAuthor(args ...string) *Embed
- func (e *Embed) SetColor(clr int) *Embed
- func (e *Embed) SetDescription(description string) *Embed
- func (e *Embed) SetFooter(args ...string) *Embed
- func (e *Embed) SetImage(args ...string) *Embed
- func (e *Embed) SetThumbnail(args ...string) *Embed
- func (e *Embed) SetTimestamp() *Embed
- func (e *Embed) SetTitle(name string) *Embed
- func (e *Embed) SetType(t discordgo.EmbedType) *Embed
- func (e *Embed) SetURL(URL string) *Embed
- func (e *Embed) SetVideo(url string, args ...int) *Embed
- func (e *Embed) Truncate() *Embed
- func (e *Embed) TruncateDescription() *Embed
- func (e *Embed) TruncateFields() *Embed
- func (e *Embed) TruncateFooter() *Embed
- func (e *Embed) TruncateTitle() *Embed
Constants ¶
View Source
const ( EmbedLimitTitle = 256 EmbedLimitDescription = 2048 EmbedLimitFieldValue = 1024 EmbedLimitFieldName = 256 EmbedLimitField = 25 EmbedLimit = 4000 )
Constants for message embed character limits
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Embed ¶
type Embed struct {
*discordgo.MessageEmbed
}
Embed ...
func (*Embed) AppendToFooter ¶ added in v1.10.0
func (*Embed) InlineAllFields ¶
InlineAllFields sets all fields in the embed to be inline
func (*Embed) SetDescription ¶
SetDescription [desc]
func (*Embed) SetTimestamp ¶
func (*Embed) TruncateDescription ¶
TruncateDescription ...
func (*Embed) TruncateFields ¶
TruncateFields truncates fields that are too long
Click to show internal directories.
Click to hide internal directories.