diff options
Diffstat (limited to 'build/hypixel.js')
-rw-r--r-- | build/hypixel.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build/hypixel.js b/build/hypixel.js index ee81fb5..ace7540 100644 --- a/build/hypixel.js +++ b/build/hypixel.js @@ -63,6 +63,10 @@ async function fetchUser({ user, uuid, username }, included = ['player']) { // If the uuid isn't provided, get it uuid = await cached.uuidFromUser(user || username); } + if (!uuid) { + // the user doesn't exist. + return null; + } const includePlayers = included.includes('player'); const includeProfiles = included.includes('profiles'); let profilesData; |