Slash Command Options shuffled on refresh

Slash command options order seems to shuffle when you “update” an option.

  1. Create and save some required options: surname, forename, nickname (in this order).
  2. Refresh the page after save (CTRL + SHIFT + R)
  3. Select some fields of your options (just select to trigger the saving)
  4. Refresh the page after save.
  5. The option order has changed.

This bug isn’t only visual, Discord command option are also shuffled.

Video: Youtube

It would be great to have the ability to move options around like blocks, similar to how you can rearrange things in a list. This would make it much easier to reorganize them, especially when adding new options.

Specifically, I’d suggest adding two buttons: “Add required option” and “Add optional option” These would keep required and optional options separate (because optional are always in last position), and it would be simple to drag and drop them to change their positions within their respective groups.

Sorry about this bug and thanks for the through report. It looks like this was a lingering issue from our recent backend database changes.

Slash command options were being retrieved without an explicit order, so they were ordered randomly - this results in them being roughly in an order where last modified records are retrieved first, but that can vary. This has been fixed and they are now being ordered based on creation time (this should be in line with previous behavior).

When the options are submitted to Discord, they are automatically re-organized so required options come first while still maintaining the order. This reorder happens only with the object sent to Discord and is reflected in the finished slash command, but cannot be observed on the Inventor UI (as it isn’t persisted anywhere).

In the future there may be a way to manually reorder slash command options. Unfortunately, drag and drop-style UIs take a significant amount of development time to implement, and this is a particularly complex system with large cards and likely 2 groups. This might end up being similar to the bot reorder interface, with up/down arrows to reorder.

I’ve gone ahead and added that suggestion to Trello:
https://trello.com/c/s7wX98QI/235-reorder-slash-command-options

Thanks again for your report and suggestion. Closing this for now.