prun-trade-bot-go/lib/commands/commands.go

19 lines
347 B
Go
Raw Normal View History

2024-07-17 14:56:53 +02:00
package commands
import (
"context"
"github.com/bwmarrin/discordgo"
)
type SlashCommand interface {
CreateCommand() *discordgo.ApplicationCommand
Handle(ctx context.Context, session *discordgo.Session, command *discordgo.InteractionCreate)
}
func Commands() []SlashCommand {
return []SlashCommand{
StockCommand{},
PriceCommand{},
}
}