switch isInt method to appropriate class
This commit is contained in:
parent
6f155f5bee
commit
9566f38da7
@ -12,15 +12,6 @@ import java.util.stream.Collectors;
|
||||
|
||||
public class DiscordUtils {
|
||||
|
||||
public static boolean isInt(String s) {
|
||||
try {
|
||||
Integer.parseInt(s);
|
||||
return true;
|
||||
} catch (NumberFormatException ex) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static List<Member> memberSearch(Guild guild, String string, boolean bots) {
|
||||
List<Member> members = new ArrayList<>();
|
||||
String finalString = string.toLowerCase();
|
||||
|
@ -2,6 +2,15 @@ package io.rixa.bot.utils;
|
||||
|
||||
public class Utils {
|
||||
|
||||
public static boolean isInt(String s) {
|
||||
try {
|
||||
Integer.parseInt(s);
|
||||
return true;
|
||||
} catch (NumberFormatException ex) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isInteger(String s) {
|
||||
return isInteger(s,10);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user