Skip to content

Commit f000da9

Browse files
committed
pref: add ofInt
1 parent 5307334 commit f000da9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/top/focess/qq/api/command/CommandArgument.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public static CommandArgument<Long> ofLong() {
2828
return new CommandArgument<>(DataConverter.LONG_DATA_CONVERTER,null);
2929
}
3030

31+
public static CommandArgument<Integer> ofInt() {
32+
return new CommandArgument<>(DataConverter.INTEGER_DATA_CONVERTER,null);
33+
}
34+
3135
public boolean isNullable() {
3236
return isNullable;
3337
}

0 commit comments

Comments
 (0)