From 14fae3941a4205f4fbe0f9d7a96914d982d94aca Mon Sep 17 00:00:00 2001 From: "Gustavo L de Mello (Guz)" Date: Fri, 22 Nov 2024 19:08:18 -0300 Subject: [PATCH] refactor(lib,commands,errors): move errors to command_chat.go --- lib/command.go | 5 ----- lib/command_chat.go | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/command.go b/lib/command.go index 19fbefb..febe06f 100644 --- a/lib/command.go +++ b/lib/command.go @@ -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") -) - diff --git a/lib/command_chat.go b/lib/command_chat.go index f84cd3c..3882dbf 100644 --- a/lib/command_chat.go +++ b/lib/command_chat.go @@ -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