let's add a little bit of protection

This commit is contained in:
2024-07-10 16:20:33 -04:00
parent c9bdd6a8b7
commit ab5ed16c18
2 changed files with 13 additions and 3 deletions

View File

@ -94,6 +94,9 @@ local function Callback(Interaction, Command, Args)
user_info = API:GetRobloxInfoFromDiscordId(user.id)
end
end
if not user_info.id then
return error('stop doing that')
end
local description = user_info.description=='' and 'This user has no description' or user_info.description
-- table.foreach(user_info,print)