From 34466586755271969271ed5bb2dbe29c7d764e9a Mon Sep 17 00:00:00 2001 From: Luna <69462155+ServerBP@users.noreply.github.com> Date: Thu, 16 Oct 2025 13:52:18 +0200 Subject: [PATCH] fix [OCULUS USER] --- TournamentAssistantServer/Utilities/AccountLookup.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TournamentAssistantServer/Utilities/AccountLookup.cs b/TournamentAssistantServer/Utilities/AccountLookup.cs index 9699297e..0599b462 100644 --- a/TournamentAssistantServer/Utilities/AccountLookup.cs +++ b/TournamentAssistantServer/Utilities/AccountLookup.cs @@ -24,7 +24,8 @@ public class AccountLookup } // If we don't have a bot token on our hands, maybe we have a discord id? - if (string.IsNullOrEmpty(name) && (accountId.Length == 17 || accountId.Length == 18)) + // Discord id-s (snowflakes) are 17-19 characters long. Add the 19 and allow for easier adjustment in the future + if (string.IsNullOrEmpty(name) && (accountId.Length > 16 && accountId.Length < 20)) { Logger.Warning($"Looking up info for discord user: {accountId}"); var userInfo = await qualifierBot.GetAccountInfo(accountId);