Factory function to create a CommandModule object with strong typing. This is used to define a command with its associated metadata, options, and handler logic.
CommandModule
The OptionsConfig type that represents all options for the command.
OptionsConfig
The CommandModule type that represents the command.
The config for constructing the CommandModule.
A constructed CommandModule object with strong types.
Factory function to create a
CommandModule
object with strong typing. This is used to define a command with its associated metadata, options, and handler logic.