I have the following script in serverscriptservice:
local url = "a correct url" local data = { ["username"] = "Bot", ["content"] = "Test" } workspace.Baseplate.Touched:Connect(function(part) game:GetService("HttpService"):PostAsync("https://discordapp.com/api/webhooks/" .. url, game:GetService("HttpService"):JSONEncode(data)) end)
I have enabled HTTP service.
This works completely fine on studio mode, both Server and Play modes, but it does not work online.
I receive this error when activating this online:
HTTP 403 (HTTP/1.1 403 Forbidden) Stack Begin Script 'Workspace.Script', Line 8 Stack End
What is the problem with my script and why does it not work? I am fairly new to the HTTP service regarding Discord, and therefore I probably made a newbie mistake.