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

This commit is contained in:
Guz
2024-11-22 19:08:18 -03:00
parent 83a160b1e7
commit 14fae3941a
2 changed files with 5 additions and 5 deletions

View File

@@ -30,9 +30,4 @@ type ChatCommandCtx struct {
Options ChatCommandCtxOptions
}
var (
ErrChatCommandOptionNotExists = errors.New("chat command option does not exist")
ErrChatCommandOptionInvalidType = errors.New("chat command option is not of the type requested")
)

View File

@@ -9,6 +9,11 @@ import (
"github.com/bwmarrin/discordgo"
)
var (
ErrChatCommandOptionNotExists = errors.New("chat command option does not exist")
ErrChatCommandOptionInvalidType = errors.New("chat command option is not of the type requested")
)
type ChatCommand struct {
Name string
NameLocalizations *map[discordgo.Locale]string