Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Name string Aliases []string Description string Options []Option Callback CommandCallback }
type CommandCallback ¶
type CommandCallback func(*Context)
type Commands ¶
type Commands struct { Config Config Handler Handler Prefix PrefixGetter GlobalCheck GlobalCheck Commands []*Command API *regolt.API Socket *regolt.Socket // contains filtered or unexported fields }
func (*Commands) InstallSelfBot ¶
type Config ¶
type Config struct { GlobalCheck GlobalCheck Handler Handler Commands []*Command Prefixes []string Prefix string PrefixGetter PrefixGetter }
type Context ¶
type DisallowedEscape ¶
type DisallowedEscape struct {
Which string
}
func (DisallowedEscape) Error ¶
func (de DisallowedEscape) Error() string
type GlobalCheck ¶
type GlobalCheck func(*LightContext) bool
type LightContext ¶
func (*LightContext) ReactWith ¶
func (ctx *LightContext) ReactWith(s string) error
func (*LightContext) Respond ¶
func (ctx *LightContext) Respond(sm *regolt.SendMessage) (*regolt.Message, error)
type OptionRequired ¶
type OptionRequired struct {
Name string
}
func (OptionRequired) Error ¶
func (opt OptionRequired) Error() string
type PrefixGetter ¶
type PrefixGetter func(*LightContext) []string
type Scanner ¶
func (*Scanner) Transaction ¶
type SignedIntOption ¶
func (SignedIntOption) GetDescription ¶
func (o SignedIntOption) GetDescription() string
func (SignedIntOption) GetName ¶
func (o SignedIntOption) GetName() string
type StringOption ¶
type StringOption struct { Name string Description string DisallowNewlines bool Raw bool Required bool }
func (StringOption) GetDescription ¶
func (o StringOption) GetDescription() string
func (StringOption) GetName ¶
func (o StringOption) GetName() string
type UnsignedIntOption ¶
func (UnsignedIntOption) GetDescription ¶
func (o UnsignedIntOption) GetDescription() string
func (UnsignedIntOption) GetName ¶
func (o UnsignedIntOption) GetName() string
Click to show internal directories.
Click to hide internal directories.