tag

package
v0.0.0-...-553821e Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchableTagList

type SearchableTagList []Tag

func (SearchableTagList) Len

func (t SearchableTagList) Len() int

func (SearchableTagList) String

func (t SearchableTagList) String(i int) string

type Tag

type Tag struct {
	ID        snowflake.ID
	Ident     string
	CreatorID string
	GuildID   string
	Content   string
	Created   time.Time
	LastEdit  time.Time
}

Tag wraps a chat tag object.

func (*Tag) AsEmbed

func (t *Tag) AsEmbed(s *dgrs.State) *discordgo.MessageEmbed

AsEmbed creates a discordgo.MessageEmbed from the tag information.

func (*Tag) AsEntry

func (t *Tag) AsEntry(s *dgrs.State) string

AsEntry returns a single formatted string line to represent a tag.

func (*Tag) RawContent

func (t *Tag) RawContent() string

RawContent returns the content of the tags body in a markdown code embed for a discord message.

Jump to

Keyboard shortcuts

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