embedutil

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package embedutil deals with embeds.

Index

Constants

View Source
const (
	LimitTitle       = 256
	LimitDescription = 2048
	LimitFieldName   = 256
	LimitFieldValue  = 1024
	LimitField       = 25
	LimitFooter      = 2048
)

Embed limits.

Variables

This section is empty.

Functions

This section is empty.

Types

type Embed

type Embed struct {
	*discordgo.MessageEmbed
}

Embed represents a discord embed.

func NewEmbed

func NewEmbed(title string, description string) Embed

NewEmbed makes a new Embed object.

func (*Embed) AddField

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

AddField adds a field to the embedutil.

func (*Embed) SetAuthor

func (embed *Embed) SetAuthor(args ...string) *Embed

SetAuthor sets author name, URL and icon URL of an embedutil.

func (*Embed) SetFooter

func (embed *Embed) SetFooter(args ...string) *Embed

SetFooter sets the footer text and image of an embedutil.

func (*Embed) SetImage

func (embed *Embed) SetImage(args ...string) *Embed

SetImage sets the image URL of an embedutil.

func (*Embed) SetThumbnail

func (embed *Embed) SetThumbnail(args ...string) *Embed

SetThumbnail sets the thumbnail URL of an embedutil.

Jump to

Keyboard shortcuts

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