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

http 400 bad request error when trying to send discord webhook message?

Asked by 7 years ago

its supposed to send my discord a message when this remote is fired

Send = game.ReplicatedStorage:WaitForChild("Send_Message")
Send.OnServerEvent:connect(function(player, Send_Message)
    local DataToSend = {
        ['Username'] = player.Name ,
        ['Content'] = Send_Message

    }
    local WebHook = "<insert discord webhook>"
    local Data= game:GetService("HttpService"):JSONEncode(DataToSend)
    game:GetService("HttpService"):PostAsync(WebHook, Data)
end)

please help

0
Did you enable HTTP requests? DjinoKip 78 — 7y

Answer this question