refactor(lib,commands,context): move ChatCommandCtx to command_chat.go
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user