Avoid throwing errors on weird accounts in ,user #9

Merged
9382 merged 2 commits from main into main 2023-04-21 13:58:17 +00:00

View File

@ -108,7 +108,9 @@ commands:Add('user',{},'user <username|mention|"me">', function(t)
local verificationAssetId = API:GetVerificationItemID(id)
local verificationDate = "Not verified"
if verificationAssetId.data[1] then
if verificationAssetId.errors then
verificationDate = "Failed to fetch"
elseif verificationAssetId.data[1] then
verificationDate = GuessDateFromAssetID(verificationAssetId.data[1].instanceId)
end