Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultUnload ¶
Types ¶
type AllowedChatType ¶
type AllowedChatType int
const ( AllowedChatTypeAll AllowedChatType = iota AllowedChatTypeGuildOnly AllowedChatTypeDMOnly )
type Command ¶
type Command struct { UsageDoc string ShortDoc string LongDoc string Name string Aliases []string Category string // *Category ? // bot_perms []*Permission // user_perms []*Permission MinArgs int // flags []*FlagOptions AllowedChatType AllowedChatType Nsfw bool Hidden bool Disabled bool // events ??? IsSubCommand bool CallFunc func(*Command, *context.Context) (string, error) HelpFunc func(*Command, *context.Context) (string, error) UnloadFUnc func(*Command) error Bot *bot.Bot CommandMap *map[string]*Command // TODO: pointer to habdler // contains filtered or unexported fields }
Command represents bot command
Click to show internal directories.
Click to hide internal directories.