Hi Everyone!
I wanted to make a webhook in my discord server that will take certain text posted by the server in the roblox chat onto a channel in my discord server. Since the text can only be sent through a local script, i use a remote event to tell another script to send the text to the discord server. Here is some of the local script:
local text = {
["Data"] = player.Name .. " Has Beaten " .. message .. " in " .. timebeaten .. "!" .. extra
}
local encodedText = http:JSONEncode(text)
game.ReplicatedStorage.Completion:FireServer(encodedText)
Here is how the script takes the event and attempts to post the message in the discord server
http = game:GetService("HttpService")
game.ReplicatedStorage.Completion.OnServerEvent:Connect(function(encodedText)
http:PostAsync("[the webhook lol]", encodedText)
end)
For some reason, the output is returning "HTTP 400: Bad Request", and it takes me to the PostAsync line. The URL of the webhook is accurate as well, its just not fully seen in the code block. Can someone tell me whats wrong?
Any help is appreciated :)

2 comments
make sure you dont add the webhook
You should hide your webhook, remember other people could use it and try and falsely get your discord account terminated!