Error 400 on Webhook

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

discord doesnt allow roblox apis now so the only thing u can do now is use WebhookService by the roblox community on the devforum

I figured it out on my own - had to make a proxy

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.