diff --git a/lib/command_message.go b/lib/command_message.go index a17748d..d51c76e 100644 --- a/lib/command_message.go +++ b/lib/command_message.go @@ -31,11 +31,11 @@ func (c *MessageCommand) ApplicationCommand() *discordgo.ApplicationCommand { func (c *MessageCommand) Validate() error { switch { case c.Name == "": - return errors.New("Required property \"Name\" is empty") + return errors.New("required field \"Name\" is empty") case c.Description == "": - return errors.New("Required property \"Description\" is empty") + return errors.New("required field \"Description\" is empty") case c.Handler == nil: - return errors.New("Required property \"Handler\" is empty") + return errors.New("required field \"Handler\" is empty") } return nil } diff --git a/lib/command_user.go b/lib/command_user.go index 52e638c..b5ab060 100644 --- a/lib/command_user.go +++ b/lib/command_user.go @@ -31,11 +31,11 @@ func (c *UserCommand) ApplicationCommand() *discordgo.ApplicationCommand { func (c *UserCommand) Validate() error { switch { case c.Name == "": - return errors.New("Required property \"Name\" is empty") + return errors.New("required field \"Name\" is empty") case c.Description == "": - return errors.New("Required property \"Description\" is empty") + return errors.New("required field \"Description\" is empty") case c.Handler == nil: - return errors.New("Required property \"Handler\" is empty") + return errors.New("required field \"Handler\" is empty") } return nil }