How To Fix My Webhook

I’m trying to make a chatlog system that sends the messages to my discord server, but it’s saying “HTTP 400 (bad request)” can you help? The HTTPS requests are enabled in settings.

local http = game:GetService("HttpService")
local URL = "https://hooks.hyra.io/api/webhooks/not showing the webhook"

game.Players.PlayerAdded:Connect(function(plr)
	plr.Chatted:Connect(function(msg)
		local data = {
			["title"] = plr.Name,
			["description"] = msg,
			["color"] = 16614400,
			["footer"] = {
				["text"] = ""
			}
		}
		http:PostAsync(URL, http:JSONEncode(data))
	end)
end)
1 Like

I don’t believe you are sending the data right.

Try looking at this post, and check out snippets of it to see what your doing wrong.

1 Like