Fixed message commands where a null optionnal argument was being parsed when it shouldn't be
This commit is contained in:
1 parent
15d58bba38
commit
da3142df0c
1 file changed
+4
-1
@@ -268,7 +268,10 @@ public class MessageCommandContext extends CommandContext {
|
||||
invalidateContext(data, "the argument provided was not a number.");
|
||||
}
|
||||
|
||||
options.add(new MessageCommandOption(data, value));
|
||||
if (value != null) {
|
||||
options.add(new MessageCommandOption(data, value));
|
||||
}
|
||||
|
||||
index++;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user