I made a simple suggestion command in ROBLOX, I have enabled HTTP Services and everything but it still doesn't work? I've tried using proxy servers and everything, yet to no avail, could someone help?
local Http = game:GetService('HttpService')
local url = 'https://discordapp.com/api/webhooks/679438743123263516'
game.Players.PlayerAdded(function(plr)
plr.Chatted:connect(function(msg)
local data = {
['content'] = msg,
['username'] = plr.Name
}
if msg:sub(1,12) == '/recommend' then
local newData = Http:JSONEncode(data)
Http:PostAsync(newData, url)
end
end)
end)

2 comments
It's URL first and then Data. So, flip flop newData and url.
Please don't publicly post webhooks, someone could easily abuse them.