Merge pull request #9 from 9382/main

This commit is contained in:
tommy 2023-04-21 09:58:17 -04:00 committed by GitHub
commit 196abd5e59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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