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)