added basic plugin system

This commit is contained in:
2024-04-14 20:56:05 +02:00
parent bc4ada155b
commit 8600bda9bc
5 changed files with 35 additions and 22 deletions

View File

@@ -1,7 +1,6 @@
package struct_cmd
import (
"github.com/disgoorg/disgo/bot"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
)
@@ -19,5 +18,7 @@ type Command struct {
}
type Plugin struct {
Register func(client bot.Client, commands *[]Command) error
Name string
Commands []Command
Register func(e *events.Ready) error
}