added db to register plugin command

This commit is contained in:
2024-04-14 23:59:21 +02:00
parent 9ac9f89071
commit e5b5f3547a
6 changed files with 169 additions and 171 deletions

View File

@@ -1,6 +1,8 @@
package cmd
import (
"database/sql"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
)
@@ -20,5 +22,5 @@ type Command struct {
type Plugin struct {
Name string
Commands []Command
Register func(e *events.Ready) error
Register func(e *events.Ready, db *sql.DB) error
}