tags

package
v0.0.0-...-ca060dc Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tag

type Tag struct {
	Content     string
	Attachments []discord.URL

	AuthorID  discord.UserID
	Timestamp int64 // UnixNano
}

func TagMessage

func TagMessage(m discord.Message, content string) Tag

func (Tag) Owns

func (t Tag) Owns(user discord.UserID) bool

func (Tag) Valid

func (t Tag) Valid() bool

type Tags

type Tags struct {
	Ctx *bot.Context
	// contains filtered or unexported fields
}

func New

func New(node db.Node) *Tags

func (*Tags) Del

func (t *Tags) Del(m *gateway.MessageCreateEvent, name string) error

func (*Tags) Get

func (*Tags) Search

func (t *Tags) Search(m *gateway.MessageCreateEvent, args bot.ArgumentParts) error

func (*Tags) Set

func (*Tags) Setup

func (t *Tags) Setup(sub *bot.Subcommand)

Jump to

Keyboard shortcuts

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