Fixed message commands where a null optionnal argument was being parsed when it shouldn't be

This commit is contained in:
anthorob committed 2026-08-24 17:03:59 -04:00
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++;
}