Trying to make a suggestion webhook for my game & it comes out as error 400
It works in Studio and not In-game
The webhook uses a proxy therefore it can’t be it itself.
local embed = {
["title"] = "Suggestion",
["description"] = suggestion,
["footer"] = {
["text"] = "Sent by "..player.Name.." | "..player.UserId,
},
["fields"] = {
{
["name"] = "Account Age",
["value"] = player.AccountAge,
["inline"] = true,
},
{
["name"] = "Version",
["value"] = game.PlaceVersion/100,
["inline"] = true,
},
}
}
EmbedSender.sendEmbed(webhookUrl, embed)
-- V module
function Webhook.sendEmbed(webhookUrl, embed)
local requestBody = {
["embeds"] = {embed}
}
local requestBodyJson = game:GetService("HttpService"):JSONEncode(requestBody)
local request = game:GetService("HttpService"):PostAsync(webhookUrl, requestBodyJson)
end
I’m wondering if I formatted something wrong