refactor(lib,commands,context): move ChatCommandCtx to command_chat.go

This commit is contained in:
Guz
2024-11-22 19:24:19 -03:00
parent 7b8d7322d0
commit 2e54290ef8
2 changed files with 5 additions and 8 deletions

View File

@@ -1,8 +1,6 @@
package bot
import (
"errors"
"github.com/bwmarrin/discordgo"
)
@@ -25,9 +23,3 @@ type Ctx struct {
discordgo.Interaction
}
type ChatCommandCtx struct {
Ctx
Options ChatCommandCtxOptions
}

View File

@@ -72,6 +72,11 @@ func (c *ChatCommand) Validate() error {
return nil
}
type ChatCommandCtx struct {
Ctx
Options ChatCommandCtxOptions
}
type ChatCommandCtxOptions map[string]ChatCommandOption
func (opts ChatCommandCtxOptions) GetAttachement(