There must be a nicer way to perform validation for the commands. Maybe some inheritance approach to command subs could work, but this might be more complicated that it's worth.
For example, a lot of commands follow the pattern:
/stonks "command"
It would be possible to create a subclass that validates the account id and provides the account for further logic.
There are also a lot of commands that open an account selector gui, a similar approach could be used here.
There must be a nicer way to perform validation for the commands. Maybe some inheritance approach to command subs could work, but this might be more complicated that it's worth. For example, a lot of commands follow the pattern: /stonks "command"
It would be possible to create a subclass that validates the account id and provides the account for further logic.
There are also a lot of commands that open an account selector gui, a similar approach could be used here.