Documentation
¶
Index ¶
- type Logger
- func (l Logger) EditIteractionResponse(sess *discordgo.Session, i *discordgo.InteractionCreate) (string, error)deprecated
- func (l Logger) HandleInteractionApplicationCommand(sess *discordgo.Session, i *discordgo.InteractionCreate) (string, error)
- func (l Logger) HandlerFunc(sess *discordgo.Session, i *discordgo.InteractionCreate) (string, error)deprecated
- func (l Logger) InteractionApplicationCommandAutocomplete(sess *discordgo.Session, i *discordgo.InteractionCreate) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Slash command handler logger
func NewLogger ¶
NewLogger creates a new logger middware.
logger: logger to use.
next: next middware in chain.
func (Logger) EditIteractionResponse
deprecated
added in
v1.3.0
func (Logger) HandleInteractionApplicationCommand ¶ added in v1.5.0
func (Logger) HandlerFunc
deprecated
added in
v1.3.0
func (Logger) InteractionApplicationCommandAutocomplete ¶ added in v1.3.0
func (l Logger) InteractionApplicationCommandAutocomplete(sess *discordgo.Session, i *discordgo.InteractionCreate) (string, error)
handler calls discord slash command handler with logging
Click to show internal directories.
Click to hide internal directories.