Skip to content

Commit

Permalink
fix: corrects the field used to discriminate commands
Browse files Browse the repository at this point in the history
- It's Text not Command
  • Loading branch information
ajpauwels committed Oct 5, 2023
1 parent f75e9ee commit b90e2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func BuildHandler(logger *zap.Logger, config *Config) func(http.ResponseWriter,
}

// Post help as an ephemeral message
if slashCommandBody.Command[0:4] == "help" {
if slashCommandBody.Text[0:4] == "help" {
w.WriteHeader(http.StatusOK)
err = RespondWithHelp(slashCommandBody.ResponseURL)
if err != nil {
Expand Down

0 comments on commit b90e2c7

Please sign in to comment.