Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

403 forbidden with http requests/http service?

Asked by 6 years ago
local Players = game:GetService("Players")
local HttpService = game:GetService("HttpService")
local msg = script.Parent.Parent.ApplicationFrame.ApplicationArea.Text
local plr = script.Parent.Parent.Parent.Parent.Parent
local webhook = "https://discordapp.com/api/webhooks/443187425033060411/FLQ9s-L5qRzC7D20v4jaZ3epzXm7ngcJb0H7_QyOmTVNZkqkPFwKt7CQX0IbPORMJO6q"

script.Parent.MouseButton1Click:Connect(function()
        plr.sab.Value = true
        local data = {
            content = "```" .. script.Parent.Parent.ApplicationFrame.ApplicationArea.Text .. "```";
            username = script.Parent.Parent.Parent.Parent.Parent.Name;
            avatar_url = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userId="..script.Parent.Parent.Parent.Parent.Parent.UserId
        }
    HttpService:PostAsync(webhook, HttpService:JSONEncode(data))
    plr:Kick("Your application has been submitted!")
end)

I'm using a discord webhook not sure if that effects it but it works in studio and not in game.

0
I'm pretty sure that Discord blocked Roblox webhooks :/ Crazycat4360 115 — 6y
0
then how does it work in-studio?? VeryDarkDev 47 — 6y
1
nvm I replace discordapp.com with discord.osyr.is VeryDarkDev 47 — 6y

Answer this question