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