My apologies, change Data in table.insert
to data
, case sensitive, my bad.
Already did lul, but same error
Try remove one of the {
from {{
and }}
It works with Color3.new but itās okay lol
It working but now http 400 bad request cuz we removed {{ and }}
Dont remove {{ and }}, just remove one of the brackets so it is only a single bracket rather than two.
Itās what i did lul but http 400 bad request
Okay, well add that bracket back again, in the table insert use the current table as this data["embeds"][1]["fields"]
now i found out the new problem, it works but now there an problem :
It doesnāt add the ā,ā at end of }
What exactly are you printing out?
for k, d in pairs(getfields) do
print(d)
end
It should do that automatically when you do table.insert
But it doesnāt maybe there something to do?
When you are checking the field names you shouldnāt do them like that, maybe try this?
table.insert(getfields, {["name"] = tostring(field1Name), ["value"] = tostring(field1Val), ["inline"] = false})
Iām gonna try thank you for your help too
Youāre welcome, if it helped then feel free to mark it as the solution, if you have any further questions/problems feel free to reply and iāll try my best to assist.
Thank you very much you saved me it worked tysm
I got another question lol, how i can do that?
if getimage ~= nil then
table.insert(data["avatar_url"], getimage) -- getimage is a function
end
Edit: Here the solution:
data["avatar_url"] = tostring(getimage)
and getimage:
https://www.roblox.com/headshot-thumbnail/image?userId="..p.UserId.."&width=420&height=420&format=png