The CommandParser Object
The CommandParser Object is passed to every command via it's public run(command: CommandParser)
method call from the main Bot class's command handler method.
You will use this object to interact with the parsed out command and the underlying discord.js
Message
object.
Argument parsing support is built in and is parsed out dynamically not requiring any static configuration. To pass in arguments you can send a message such as >mycommand name=mateo,description=taco tuesdays
and your arguments will be available via command.namedarguments.name
orcommand.namedarguments.description
.
command.command
The command.command
property is a literal representation of the command issued by the discord message and received by your module.