made simplefun plugin

This commit is contained in:
2024-04-14 22:26:30 +02:00
parent 410c28bda9
commit d814d39cf1
22 changed files with 96 additions and 39 deletions

24
cmd/main.go Normal file
View File

@@ -0,0 +1,24 @@
package cmd
import (
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
)
type Command struct {
Definition discord.ApplicationCommandCreate
Interact func(e *events.ApplicationCommandInteractionCreate)
Autocomplete func(e *events.AutocompleteInteractionCreate)
ComponentInteract func(e *events.ComponentInteractionCreate)
ModalSubmit func(e *events.ModalSubmitInteractionCreate)
ComponentIDs []string
ModalIDs []string
DynamicModalIDs func() []string
DynamicComponentIDs func() []string
}
type Plugin struct {
Name string
Commands []Command
Register func(e *events.Ready) error
}