embed

package
v0.0.0-...-f8972c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Embed

type Embed struct {
	*discordgo.MessageEmbed
}

func NewEmbed

func NewEmbed() *Embed

func NewErrorEmbed

func NewErrorEmbed(ctx shireikan.Context) *Embed

func NewGenericEmbed

func NewGenericEmbed(ctx shireikan.Context) *Embed

func NewSuccessEmbed

func NewSuccessEmbed(ctx shireikan.Context) *Embed

func NewWarningEmbed

func NewWarningEmbed(ctx shireikan.Context) *Embed

func (*Embed) AddField

func (e *Embed) AddField(name, value string, inline bool) *Embed

func (*Embed) AddFields

func (e *Embed) AddFields(fields ...*discordgo.MessageEmbedField) *Embed

func (*Embed) AddFieldsFromMap

func (e *Embed) AddFieldsFromMap(fields map[string]string, inline bool) *Embed

func (*Embed) SetAuthor

func (e *Embed) SetAuthor(name, url, iconURL string) *Embed

func (*Embed) SetColor

func (e *Embed) SetColor(color int) *Embed

func (*Embed) SetColorHex

func (e *Embed) SetColorHex(hex string) *Embed

func (*Embed) SetColorRGB

func (e *Embed) SetColorRGB(r, g, b int) *Embed

func (*Embed) SetDescription

func (e *Embed) SetDescription(description string) *Embed

func (*Embed) SetFooter

func (e *Embed) SetFooter(text, iconURL string) *Embed

func (*Embed) SetImage

func (e *Embed) SetImage(url string) *Embed

func (*Embed) SetThumbnail

func (e *Embed) SetThumbnail(url string) *Embed

func (*Embed) SetTimestamp

func (e *Embed) SetTimestamp(timestamp time.Time) *Embed

func (*Embed) SetTitle

func (e *Embed) SetTitle(title string) *Embed

func (*Embed) SetURL

func (e *Embed) SetURL(url string) *Embed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL