Making a webhook, want to make it look good. Using embeds. (feedback form)
TLDR: Embeds dont work, HTTP 400, Bad Request (I understand the error, just not why it’s showing up. I just dont particularly understand what’s wrong with the code) Error on line 44:
local HS = game:GetService("HttpService")
local Webhook = "im not stupid, dont think you can steal my webhook link. >:D"
local Data = {
["content"] = "Ok",
["embeds"] = {
["title"] = "**Feedback Form**",
["description"] = "testing",
["type"] = "rich",
["color"] = tonumber(0xed0404),
["fields"] = {
{
["name"]= "UserId",
["value"] = "plr.UserId",
["inline"]= true
},
{
["name"]= "Username",
["value"]= "plr.Name",
["inline"] = true
},
{
["name"] = "Time Sent",
["value"] = os.date("%c"),
["inline"] = true
},
{
["name"]= "Feedback",
["value"] = "Text"
}
}},
["thumbnail"] = {
["url"] = "https=//cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg",
["height"]= 250,
["width"] = 250
},
["author"] = {
["name"] = "plr.Name",
["icon_url"] = "https=//cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg"
},
["footer"] = {
["text"] = "Sent by ACC Training Center"
}
}
Data = HS:JSONEncode(Data)
HS:PostAsync(Webhook, Data)
Help would be greatly appreciated. Thanks, extremely smart people of the internet.