Closed Asartea closed 4 months ago
@TheOdinProject/odin-bot Can someone review this please
This makes sense to prevent discrepancies from changing only one command and not its mirror command.
Assigning you @Asartea. We'd of course need any tests for legacy commands to pass, and for screenshots showing the slash commands are also unchanged by this refactor.
Complete the following REQUIRED checkboxes:
[x] I have thoroughly read and understand The Odin Project Contributing Guide
[x] The title of this issue follows the
command name: brief description of request
format, e.g./help: add optional @user parameter
The following checkbox is OPTIONAL:
1. Description of the Feature Request: Currently, commands for which there is both a text and a slash command version define their description, title, etc separately, even though these are usually the same. This means that to update a command one has to remember to change both instances separately or risk getting them out of sync.
It would be much easier if these commands had a single source of truth, from which both individually pull the required info. The easiest way to accomplish this in my opinion would be to create a JS file containing this info, and then import the required parts in each individual file.
Example
2. Acceptance Criteria: