So I have came up with the idea to have a Roblox place that you can send messages to a discord server from. Only thing is, I am getting an http 404 error, I have used the Discord copy paste button so I don't think that it is a problem with the link. Here is the script
script.Parent.MouseButton1Click:Connect(function()
local http = game:GetService("HttpService")
local Data = {
["content"] = (TextBox.Text)
}
Data = http:JSONEncode(Data)
http:PostAsync("https://discordapp.com/api/webhooks/(placeholder for publication purposes)", Data)
end)
I have no idea what is going on, can someone help?
(edit) sorry im dumb, i cant format well lol
Im also getting a too many requests error, so I don't know if this is discord or roblox sided.

4 comments
put it in a lua code block please
alright
I have a feeling that it has something to do with the string, but then how would I get a variable output in the discord server?
Is it because you reasign "Data" by doing "Data = http:JSONEncode(Data)"?