Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SlashCommands is a map of all slash commands SlashCommands map[string]func() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate)) = make(map[string]func() (*discordgo.ApplicationCommand, func(s *discordgo.Session, i *discordgo.InteractionCreate))) // SlashCommandHandlers is a map of all slash command handlers SlashCommandHandlers map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate) = make(map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate)) // Handlers is a map of all handlers Handlers map[string]interface{} = make(map[string]interface{}) // ScheduledEvents is a map of all scheduled events ScheduledEvents map[string]func(s *discordgo.Session, quit chan interface{}) error = make(map[string]func(s *discordgo.Session, quit chan interface{}) error) // ComponentHandlers is a map of all component handlers ComponentHandlers map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate) = make(map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate)) )
Functions ¶
func StartScheduledTasks ¶
func StartScheduledTasks(ctx ddtrace.SpanContext)
startScheduledEvents starts all scheduled events
func StopScheduledTasks ¶
func StopScheduledTasks(ctx ddtrace.SpanContext)
stopScheduledEvents stops all scheduled events
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.