Issue Checklist
Affected Modules
Command
Description
Currently, CommandClientImpl#getParts always expects a space after the mention:
On top of that we need to do another +1 because the default @mention prefix will always be followed by a space
However, this causes a StringIndexOutOfBoundsException when a message is just a ping without a space (for example, if the bot is pinged to make it join a thread).
Issue Checklist
Affected Modules
Command
Description
Currently,
CommandClientImpl#getPartsalways expects a space after the mention:However, this causes a
StringIndexOutOfBoundsExceptionwhen a message is just a ping without a space (for example, if the bot is pinged to make it join a thread).