commands

package
v0.0.0-...-cdb1537 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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 Init

func Init(ctx ddtrace.SpanContext)

Init initializes all commands

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL