Documentation ¶
Index ¶
- type InvalidIDError
- type Todo
- func (s Todo) Add(bot *discord.Session, ctx *discord.MessageCreate, args []string) error
- func (s Todo) Archive(bot *discord.Session, ctx *discord.MessageCreate, args []string) error
- func (s Todo) CreateTask(author, title, description string) (int, error)
- func (s Todo) Delete(bot *discord.Session, ctx *discord.MessageCreate, args []string) error
- func (s *Todo) Done(bot *discord.Session, ctx *discord.MessageCreate, args []string) error
- func (s Todo) InitialiseSubscriptions() error
- func (s Todo) List(bot *discord.Session, ctx *discord.MessageCreate, args []string) error
- func (s Todo) Subscribe(bot *discord.Session, ctx *discord.MessageCreate, args []string) error
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) CreateTask ¶
Creates a new task and returns its id
func (Todo) InitialiseSubscriptions ¶
Parse all subscriptions and create their structs
Source Files ¶
Click to show internal directories.
Click to hide internal directories.