test it i guess
This commit is contained in:
parent
9dd1b5e92c
commit
f12f2a8c4e
@ -76,26 +76,33 @@ local function GuessDateFromAssetID(AssetID)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function Callback(Interaction, Command, Args)
|
local function Callback(Interaction, Command, Args)
|
||||||
|
print("Debugging on prod 1")
|
||||||
local user_info
|
local user_info
|
||||||
if Args then
|
if Args then
|
||||||
local username = Args.username
|
local username = Args.username
|
||||||
local user_id = Args.user_id
|
local user_id = Args.user_id
|
||||||
local member = Args.member
|
local member = Args.member
|
||||||
if username then
|
if username then
|
||||||
|
print("Debugging on prod 2")
|
||||||
user_info = API:GetRobloxInfoFromUsername(username)
|
user_info = API:GetRobloxInfoFromUsername(username)
|
||||||
elseif user_id then
|
elseif user_id then
|
||||||
|
print("Debugging on prod 3")
|
||||||
user_info = API:GetRobloxInfoFromUserId(user_id)
|
user_info = API:GetRobloxInfoFromUserId(user_id)
|
||||||
elseif member then
|
elseif member then
|
||||||
|
print("Debugging on prod 4")
|
||||||
user_info = API:GetRobloxInfoFromDiscordId(member.id)
|
user_info = API:GetRobloxInfoFromDiscordId(member.id)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
print("Debugging on prod 5")
|
||||||
local user = Interaction.member or Interaction.user
|
local user = Interaction.member or Interaction.user
|
||||||
if user then
|
if user then
|
||||||
user_info = API:GetRobloxInfoFromDiscordId(user.id)
|
user_info = API:GetRobloxInfoFromDiscordId(user.id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
print("Debugging on prod 6")
|
||||||
if not user_info.id then
|
if not user_info.id then
|
||||||
error(user_info)
|
print("Debugging on prod 7")
|
||||||
|
return error(user_info)
|
||||||
end
|
end
|
||||||
|
|
||||||
local description = user_info.description=='' and 'This user has no description' or user_info.description
|
local description = user_info.description=='' and 'This user has no description' or user_info.description
|
||||||
|
Loading…
Reference in New Issue
Block a user