Currently there are 3 SlashCommands that have identical (or almost identical) logic as a MessageCommand, namely: /code preview, /analyze-link, and /quote new. The only one of the the 3 that uses a helper function to minimize redundant code is /analyze-link. This should not be he case and as such the other two commands need to be refactored to rely on helpers which handle the identical parts.
Currently there are 3
SlashCommands
that have identical (or almost identical) logic as aMessageCommand
, namely:/code preview
,/analyze-link
, and/quote new
. The only one of the the 3 that uses a helper function to minimize redundant code is/analyze-link
. This should not be he case and as such the other two commands need to be refactored to rely on helpers which handle the identical parts.