JDA-Chewtils icon indicating copy to clipboard operation
JDA-Chewtils copied to clipboard

Issues/60

Open Matyrobbrt opened this issue 4 years ago • 0 comments

Pull Request

Pull Request Checklist

Pull Request Information

Check and fill in the blanks for all that apply:

  • [x] My PR fixes a bug, error, or other issue with the library's codebase.
  • [x] My PR is for the command module of the JDA-Utilities library.
  • [ ] My PR creates a new module for the JDA-Utilities library: ____.

Description

Currently, CommandClientImpl#getParts always expects a space after a mention, and such, it crashes with a StringIndexOutOfBoundsException when the message is just a ping. This PR fixes that by checking the length of the string before continuing.

Closes #60

Matyrobbrt avatar Apr 07 '22 12:04 Matyrobbrt