I’m trying to send data to discord using httpservice but it keeps giving me this error.
(I removed the webhook for obvious reasons.)
Code:
local event = game.ReplicatedStorage.RemoteEvent
local http = game:GetService(“HttpService”)
local URL = “”
local function postToDiscord(Message)
local data = {[“Content”] = Message
}
data = http:JSONEncode(data)
http:PostAsync(URL, data)
end
event.OnServerEvent:Connect(function(plr, text)
postToDiscord(text)
end)