Versions in this module Expand all Collapse all v0 v0.1.1 Mar 18, 2020 Changes in this version + type Args map[string]interface + func (a Args) Delete(key string) + func (a Args) Load(key string) (interface{}, bool) + func (a Args) Store(key string, val interface{}) + func NewArgs() Args + type Builder struct + func (b *Builder) Filter(f Filter) *Builder + type Command interface + Match func(toks Toks) (string, bool) + type Context struct + Alias string + Args Args + Err error + FmtFilterErr func(Filter) string + Message *discordgo.Message + Prefix string + Session *discordgo.Session + Toks Toks + func NewContext() Context + type Event interface + Handle func(ctx Context) error + Resolve func(ctx Context) + type Filter int + const MessagesBot + const MessagesEmpty + const MessagesGuild + const MessagesPrivate + const MessagesSelf + func NewFilter(filters ...Filter) Filter + func (f Filter) Contains(filter Filter) bool + type FilterError struct + func (e *FilterError) Error() string + func (e *FilterError) Filter() Filter + type Parseable interface + Parse func(toks Toks) (Args, error) + type Prefixer interface + Default func() string + Load func(guildID string) (string, bool) + type Router struct + func New(s *discordgo.Session, p Prefixer) *Router + func (r *Router) Command(c Command) *Builder + func (r *Router) Event(e Event) *Builder + func (r *Router) HandleDefault(h interface{}) *Builder + func (r *Router) Has(b *Builder) + func (r *Router) HasOnce(b *Builder) + type Toks struct + func NewToks(s string) Toks + func (t Toks) Get(i int) (string, bool) + func (t Toks) Iter() []string + func (t Toks) Len() int + func (t Toks) Raw() string + func (t Toks) Set(i int, tok string) bool Other modules containing this package github.com/pixeltopic/sayori/v2