I am trying to send a message from roblox to discord, however it isn’t working.
I keep getting this error:
My current code is:
local http = game:GetService("HttpService")
local Data = {
["content"] = "Hey! This is a message sent from roblox!"
}
Data = http:JSONEncode(Data)
http:PostAsync("My Webhook Here", Data)
i have httpservice enabled, and I am testing in Roblox, not studio.
Yeah, roblox seems to have blocked discord.com requests since a couple hours ago. For some weird reason they’re not blocked from studio but they’re blocked in-game.
Anyways heres a temporary solution I found (this solution doesn’t work anymore):
Instead of using discord.com/api/ in your URL, use discordapp.com/api/ instead.
This seems to have fixed the issue completely for me.
Other way. Discord has blocked Roblox because of abuse purposes. People just blindly spam requests without validating their data or not following ratelimits. This is the easy solution for them. ¯\_(ツ)_/¯
Studio has a different user agent. Roblox/Linux is the user agent that Roblox servers currently use, whilst Studio is (at the time of writing) RobloxStudio/WinInet RobloxApp/0.497.0.4970359 (GlobalDist; RobloxDirectDownload).
What’s weird is that only one of my webhooks is working, and another one isn’t. But I think I have a workaround. If they limit you to only one, then use that to your advantage. Below is an image of my workaround.
Some devs already had that option blocked, I now can’t access it through that way. Soon, that way will also become used too much and blocked for all of us.
Hi, how would I go about doing this? I’ve looked into Apigee, but I don’t think it’s available to individuals. I have a website domain if it’d help, but I’m not sure if that has anything to do with this.
Yeah, I’ve made it where you can only send one request per session, meaning you have to leave and rejoin to send another. Is this enough, or should I made it one request per 10 or so hours?