i have an error : HTTP 400 (Bad Request) and really i don’t know how to fix it
I’ve been blowing my brains out for 3 hours already, but I really can’t find the mistake, could someone help me?
http = game:GetService("HttpService")
game.ReplicatedStorage.ReportEvent.OnServerEvent:Connect(function(executor)
local Data = {
{
["content"] = "",
["embeds"] = {{
["author"] = {
["name"] = "By YaK Studio",
["icon_url"] = "https://i.imgur.com/HnwY5lx.png",
["image"] = "https://i.imgur.com/HnwY5lx.png",
},
["title"] = "PSS - Report Log",
["description"] = "**A player got reported**",
["type"] = "rich",
["color"] = tonumber(11675437),
["fields"] = {
{
["name"] = "Field 1",
["value"] = "Field 1",
["inline"] = false
},
{
["name"] ="**By Who**",
["value"]= executor.Name.." / ".."https://www.roblox.com/users/"..executor.UserId.."/profile",
["inline"] = false
},
{
["name"] ="**Game Name**",
["value"] = "GameName",
["inline"] = false
},
{
["name"]= "**ServerId**",
["value"] = "game.JobId,
["inline"] = false
},
{
["name"] = "Date",
["value"] = "after",
["inline"] = false
}
},
["thumbnail"] = {
["url"] = "https://i.imgur.com/HnwY5lx.png",
}
}},
["username"] = "Test",
["avatar_url"] = "https://i.imgur.com/HnwY5lx.png",
}
}
Data = http:JSONEncode(Data)
http:PostAsync("my webhook", Data)
end)
thanks