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

My simple ROBLOX to Discord webhook isn't working?

Asked by
ACHRONlX 255 Moderation Voter
4 years ago

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)
0
It's URL first and then Data. So, flip flop newData and url. killerbrenden 1537 — 4y
0
Please don't publicly post webhooks, someone could easily abuse them. y3_th 176 — 4y

Answer this question