Discord webhook not working (HTTP 403 Error)

So I have a working webhook script that has been working for a while now, but today it isn’t working at all and is not posting what I need it to. This is a discord webhook btw. I then tried to change the webhook to a guided webhook to see if it was working there and it did. So I deleted the old webhook I was using and remade it and redid the link. But it still doesn’t work and I get the same error all the time.

code:

local HttpService = game:GetService("HttpService")
local Players = game:GetService("Players")
local webhook = "https://discord.com/api/webhooks/webhookstuff"

Cmdr.RemoteFunction.OnServerInvoke = function (player, text, options)
	
	local cmdrdata = {
		content = player.Name..": "..text;
	}

	HttpService:PostAsync(webhook, HttpService:JSONEncode(cmdrdata))
	
	return Cmdr.Dispatcher:EvaluateAndRun(text, player, options)
end

error:
image

1 Like

I am in another discord server where webhooks are present and their webhooks are working but mine aren’t.

Issue isn’t happening with just me and is something else.

There’s a really cool feature that Discourse came out with when it was founded called a search bar!

Try using it sometime!

2 Likes

Same here, getting 403 randomly.

This exact same thing is happening with me, I have a script which makes a webhook post a message to Discord when a player joins. It just started today.


This guy sent this on my post, said he’ll post a Youtube video on it.

I’ll update you guys as soon as he is done.

Discord blocked Roblox API I think. Someone just annouce about this one of my Discord Server. I would suggest to use Guilded.gg which is made by Roblox itself. There’s webhook thing there!

Alright, here is his video: - YouTube

You have to put

local webhook = "https://discordapp.com/api/webhooks/webhookstuff"

in the 3rd line.

Replace
discord.com
with
discordapp.com

3 Likes

Is private. I can’t see anything there :sweat_smile:

Because it’s breaking TOS, so he removed it.

Yea, but u can still use Guilded.gg

Guilded is not made or owned by Roblox in any way, shape, or form.

Roblox owned it after purchase Guilded.gg but is still develop by Guilded.inc ;-;

Guilded - Wikipedia.

Interesting. Was not aware of that purchase. Don’t know why they don’t advertise it.

1 Like

RE: Old post.

The discordapp.com method is now banned.

You officially cannot send webhooks through Roblox as in it’s against Discord TOS.
Only way to go over this is to use a third party service provider.

You can replace “discord.com” with “hooks.hyra.io” (top trusted proxy) to send webhooks, or you can use other proxies.

5 Likes

This is most likely due to the server using a Proxy.

Cloudflare DNS has blocked Roblox requests from reaching Discord due to the fact that some developers have ignored their previous warning(s) about using the HTTPService for spammy things such as join logs and such.

This is not true, discord webhooks still work. Cloudfare has not blocked Roblox requests from reaching Discord because they still do reach discord. Webhooks that were found to be breaking Discord’s TOS were blocked by discord, but this has always happened. Newly made webhooks should still work. I am still able to send messages from my roblox game to discord via a discord webhook, but it is important to not create spammy discord webhooks because they will eventually be blocked.