🎚️Command Switch Information
How can we modify the behavior of a command?
For SwitchInfo
instances, consult the below constructors to create an array of SwitchInfo
instances when defining your commands:
You can access the switch options using the Options
property. The existing properties, like IsRequired
, are proxies to that property, but are to stay for compatibility.
Try to use the second overload if you want to specify the options, if possible. This allows you to be more expressive in your mod command definition code, making it more readable.
Last updated