Discord Webhook Error 400

I’m trying to send it into an embed, however I get a error 400, bad request.
Code:

local HTTP_SERVICE = game:GetService("HttpService")
local url="https://www.roblox.com/headshot-thumbnail/image?userId=204220392&width=150&height=150&format=png"
				
local data = 
	{
		embed = {{
				title = "[TEST-FROM OUTPUT] Hand-to Logs";
				description = "[ACCEPTED]  gIwwinnq gave sus stuff to himself";	
				color = tonumber(0x965306);
				footer = {
					con_url = url;
					text = "gIwwinnq"	
				}
			}}
		}
				
local final = HTTP_SERVICE:JSONEncode(data)
local webhook = 'https://discord.com/api/webhooks/xxx/xxx'
HTTP_SERVICE:PostAsync(webhook, final)

The webhook link is right, webhook link is not there due to privacy.

roblox has blocked discord webhooks.

Fairly sure it’s the other way round: that Discord has blocked ROBLOX’s user agent.

Source.

You need to use a proxy since discord block roblox

You fairly sure? I developed another group and their webhook works with using discord.com and it works, still to this day.

1 Like

Yes, if you were to use webhooks in studio it would work perfectly fine, while actual experience it wouldn’t function. I recommend you changing to proxy

A HTTP 400 request means it’s a bad request. It’s very likely caused due to Discord blocking requests from Roblox servers.

I would recommend using a proxy to bypass this ban (or use some other system).

Roblox blocking requests? Did you mean Discord?

Yes im sure it only works in studio because it is hosted in your local machine

Oops yea I changed it. I wrote Roblox rather then Discord :laughing:

1 Like