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
+3
@@ -268,7 +268,10 @@ public class MessageCommandContext extends CommandContext {
|
|||||||
invalidateContext(data, "the argument provided was not a number.");
|
invalidateContext(data, "the argument provided was not a number.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (value != null) {
|
||||||
options.add(new MessageCommandOption(data, value));
|
options.add(new MessageCommandOption(data, value));
|
||||||
|
}
|
||||||
|
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user