Documentation ¶
Index ¶
- type AutoCompleteFunc
- type Bot
- func (b *Bot) AutoCompletePreflight(logLevel zerolog.Level, comFunc AutoCompleteFunc) func(itx tempest.CommandInteraction) []tempest.Choice
- func (b *Bot) CommandPreflight(comFunc CommandFunc) func(itx *tempest.CommandInteraction)
- func (b *Bot) Handler() *handler.Handler
- func (b *Bot) HttpHandler() http.Handler
- func (b *Bot) Init() error
- func (b *Bot) LogLevel() zerolog.Level
- func (b *Bot) Serve(ctx context.Context, lis net.Listener) error
- func (b *Bot) Tempest() *tempest.Client
- type BotOption
- type CommandFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoCompleteFunc ¶
type AutoCompleteFunc func(*comctx.CommandContext) []tempest.Choice
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func (*Bot) AutoCompletePreflight ¶
func (b *Bot) AutoCompletePreflight(logLevel zerolog.Level, comFunc AutoCompleteFunc) func(itx tempest.CommandInteraction) []tempest.Choice
func (*Bot) CommandPreflight ¶
func (b *Bot) CommandPreflight(comFunc CommandFunc) func(itx *tempest.CommandInteraction)
func (*Bot) HttpHandler ¶ added in v0.0.6
type BotOption ¶
type BotOption func(*Bot)
func WithAuthorizedUsers ¶
func WithGuilds ¶
func WithLogLevel ¶
type CommandFunc ¶
type CommandFunc func(*comctx.CommandContext)
Click to show internal directories.
Click to hide internal directories.