19 lines
347 B
Go
19 lines
347 B
Go
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{},
|
|
}
|
|
}
|