fix invalid input minecraft uuid search
This commit is contained in:
@ -2,7 +2,7 @@ export async function getJavaUuid(username: string) {
|
||||
const response = await fetch(`https://api.mojang.com/users/profiles/minecraft/${username}`);
|
||||
if (!response.ok) {
|
||||
// user doesn't exist
|
||||
if (response.status == 404) throw new Error();
|
||||
if (response.status == 400 || response.status == 404) throw new Error();
|
||||
// rate limit
|
||||
else if (response.status == 429) return null;
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user