Fix regex exception occuring on some prefixes in the javacord module (#400)
Bug be gone
This commit is contained in:
parent
72f105014a
commit
6109c3af5a
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ public class JavacordCommand<C> implements MessageCreateListener {
|
|||
if (!messageContent.startsWith(commandPrefix)) {
|
||||
return;
|
||||
}
|
||||
messageContent = messageContent.replaceFirst(commandPrefix, "");
|
||||
messageContent = messageContent.substring(commandPrefix.length());
|
||||
|
||||
final String finalContent = messageContent;
|
||||
if (((StaticArgument<C>) this.command).getAliases()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue