categories

package
v0.0.0-...-531763a Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Categories

type Categories struct {
	// contains filtered or unexported fields
}

func NewCategories

func NewCategories(db *sqlx.DB, base *base.Base, s *sevcord.Sevcord, polls *polls.Polls) *Categories

func (*Categories) AddCat

func (c *Categories) AddCat(ctx sevcord.Ctx, opts []any)

func (*Categories) Autocomplete

func (c *Categories) Autocomplete(ctx sevcord.Ctx, val any) []sevcord.Choice

func (*Categories) CatEditCmd

func (c *Categories) CatEditCmd(ctx sevcord.Ctx, cat string, elems []int, kind types.PollKind, format string, contains bool)

contains is for whether to make sure the cat contains the element (needed for rmcat)

func (*Categories) ColorCmd

func (c *Categories) ColorCmd(ctx sevcord.Ctx, opts []any)

func (*Categories) DelCat

func (c *Categories) DelCat(ctx sevcord.Ctx, opts []any)

func (*Categories) ImageCmd

func (c *Categories) ImageCmd(ctx sevcord.Ctx, cat string, image string)

func (*Categories) Info

func (c *Categories) Info(ctx sevcord.Ctx, opts []any)

func (*Categories) RmCat

func (c *Categories) RmCat(ctx sevcord.Ctx, opts []any)

func (*Categories) SignCmd

func (c *Categories) SignCmd(ctx sevcord.Ctx, opts []any)

Jump to

Keyboard shortcuts

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