Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSession ¶
func NewSession(bot interface{}, options *BotOptions, token string) (*discordgo.Session, error)
Types ¶
type BotOptions ¶
type BotOptions struct {
Commands CommandMap
Types map[string]string
Prefix string
GroupNames map[Group]string
Errors chan struct {
Err error
*discordgo.MessageCreate
}
OnPanic func(*discordgo.Session, *discordgo.MessageCreate, interface{})
}
type Command ¶
type Command struct {
Description string `json:"description"`
Arguments []*Argument `json:"arguments"`
Cooldown int `json:"cooldown"`
Group `json:"permission"`
Aliases []string `json:"aliases"`
Examples []string `json:"examples"`
Hidden bool `json:"hidden"`
}
func (Command) ForcedArgs ¶
type CommandMap ¶
type HandlerMap ¶
type InsufficientPermissionsError ¶
func (InsufficientPermissionsError) Error ¶
func (e InsufficientPermissionsError) Error() string
type UsageError ¶
type UsageError struct {
Usage string
}
func (UsageError) Error ¶
func (e UsageError) Error() string
type ZeroArgumentsError ¶
type ZeroArgumentsError struct {
Command string
}
func (ZeroArgumentsError) Error ¶
func (e ZeroArgumentsError) Error() string
Click to show internal directories.
Click to hide internal directories.