We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d99eea5 commit 2737088Copy full SHA for 2737088
1 file changed
src/main/java/material/DestinyAPI.java
@@ -6,7 +6,6 @@
6
import material.clan.Clan;
7
import material.user.BungieUser;
8
import utils.HttpUtils;
9
-import utils.framework.JDAOAuth;
10
import utils.framework.OAuthManager;
11
12
import java.util.ArrayList;
@@ -108,6 +107,15 @@ public static List<BungieUser> getUsersWithName(String name) {
108
107
return temp;
109
}
110
+ /**
111
+ * Return a list of valid bungie users with that name
112
+ */
113
+ public static List<BungieUser> getValidUsers(String name) {
114
+ List<BungieUser> list = getUsersWithName(name);
115
+ list.removeIf(bungieUser -> !bungieUser.isValidUser());
116
+ return list;
117
+ }
118
+
119
public static Clan getClan(long id) {
120
return new Clan(id);
121
0 commit comments