The commands basically works spliting the every message by arguments, and using these arguments to manage the data depending of the command.
In this case the bot just split the command after the prefix, and use the first word to know which command will be executed, and then do whatever that could be required.
The commands basically works spliting the every message by arguments, and using these arguments to manage the data depending of the command. In this case the bot just split the command after the prefix, and use the first word to know which command will be executed, and then do whatever that could be required.