todo

package
v0.0.0-...-2911f81 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvalidIDError

type InvalidIDError struct {
	InvalidIDs []string
}

func (*InvalidIDError) Error

func (e *InvalidIDError) Error() string

type Todo

type Todo struct {
	DB              *sql.DB
	SelectedOptions map[string][]string // Keeps track of items a user selected in a select menu, so we can react on button clicks
}

func (Todo) Add

func (s Todo) Add(bot *discord.Session, ctx *discord.MessageCreate, args []string) error

func (Todo) Archive

func (s Todo) Archive(bot *discord.Session, ctx *discord.MessageCreate, args []string) error

func (Todo) CreateTask

func (s Todo) CreateTask(author, title, description string) (int, error)

Creates a new task and returns its id

func (Todo) Delete

func (s Todo) Delete(bot *discord.Session, ctx *discord.MessageCreate, args []string) error

func (*Todo) Done

func (s *Todo) Done(bot *discord.Session, ctx *discord.MessageCreate, args []string) error

func (Todo) InitialiseSubscriptions

func (s Todo) InitialiseSubscriptions() error

Parse all subscriptions and create their structs

func (Todo) List

func (s Todo) List(bot *discord.Session, ctx *discord.MessageCreate, args []string) error

func (Todo) Subscribe

func (s Todo) Subscribe(bot *discord.Session, ctx *discord.MessageCreate, args []string) error

Jump to

Keyboard shortcuts

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