diff options
Diffstat (limited to 'src/hypixelCached.ts')
-rw-r--r-- | src/hypixelCached.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index 71e9de9..f76c52a 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -90,7 +90,7 @@ export async function uuidFromUser(user: string): Promise<string> { // check if the username is a value const uuidToUsername: {[ key: string ]: string} = usernameCache.mget(usernameCache.keys()) for (const [ uuid, username ] of Object.entries(uuidToUsername)) { - if (username.toLowerCase && user.toLowerCase() === username.toLowerCase()) + if (username && username.toLowerCase && user.toLowerCase() === username.toLowerCase()) return uuid } |