From 338ce8496330748052c214b404b9817b514ef202 Mon Sep 17 00:00:00 2001 From: Extreme Date: Mon, 12 Feb 2024 18:39:06 -0600 Subject: [PATCH] Users with exactly 3 or exactly 16 characters are not able to be found --- src/managers/UserManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/UserManager.ts b/src/managers/UserManager.ts index 2be9d94b..52edb981 100644 --- a/src/managers/UserManager.ts +++ b/src/managers/UserManager.ts @@ -82,7 +82,7 @@ class UserManager extends Base { } else { ids.push(idOrDisplayName); } - } else if (idOrDisplayName.length > 3 && idOrDisplayName.length < 16) { + } else if (idOrDisplayName.length >= 3 && idOrDisplayName.length <= 16) { const cachedUser = this.cache.find((u) => u.displayName === idOrDisplayName); if (cachedUser) { const cachedUserClone = new User(this.client, cachedUser.toObject());