Discord Webhook Proxy Tutorial

Hi! This is my first forums post so if I’m in the wrong place just tell me.

First lets start with "what is a discord webhook proxy?"
A discord webhook is using Roblox to send messages in discord. Discord did not like roblox sending messages though the servers, so you can only send the in studio. until now.

Using proxys:

If you are viewing this tutorial I assume you have some knowledge with using webhooks. If not, use this tutorial by @WaterJamesPlough.

Anyhow, a normal webhook should look something like

https://discordapp.com/api/webhooks/xxxxxx/xxxxxxx. This can only be send using Roblox Studio. If you want to send it through a server, then instead of https://discordapp.com/api/webhooks/xxxxxx/xxxxxxx use https://hooks.hyra.io/api/webhooks/xxxxxx/xxxxxxx. This will allow you to send messages though the server. An example of a player joined logging I made looks like this:

example

local DataStore = game:GetService("DataStoreService"):GetDataStore("VisitsStore")

local DataStore = game:GetService("DataStoreService"):GetDataStore("VisitsStore")
local TimePlayedStart = os.time()
game.Players.PlayerAdded:Connect(function(plr)
pcall(function()
		if not DataStore:GetAsync(plr.UserId.."-".."visits") then
			amount.Value = 0
		else
			amount.Value = DataStore:GetAsync(plr.UserId.."-".."visits")
			
		end
	
		amount.Value = amount.Value + 1
		DataStore:SetAsync(plr.UserId.."-".."visits", amount.Value)
	end)
end)
game.Players.PlayerRemoving:Connect(function(plr)
local HookData = {
		["embeds"] = {{
			['username'] = "Plr joined Bot",
			["title"] = plr.Name.." joined the game for the "..DataStore:GetAsync(plr.UserId.."-".."visits")..afterword.." time",
			["type"] = "rich",
			["color"] = tonumber(0x4287f5)
			
		}}
	}
	
	HookData = http:JSONEncode(HookData)
	
	if not game:GetService("RunService"):IsStudio() then
		http:PostAsync("https://hooks.hyra.io/api/webhooks/xxxx", HookData)
	end
end)

This script will log how many times the player has joined and how long they joined for. This is very useful for tracking where people get in your game.

Thanks for looking at this tutorial. I hoped you learned a lot and might use this knowledge in your future games. If you have any questions please put them in the comments!

-@shipmaster2410

17 Likes

This tutorial exists already.

1 Like

yes but this demonstrates how to use it not exactly what it is

3 Likes

Really not a good idea to be deliberately evading Discord blocks…pretty sure that’s a sure fire way to get banned from Discord if they catch you.

1 Like

There was a tweet from a Discord staff member saying that as long as the proxy is rate limited its fine to use a proxy.

3 Likes

Does this still work? I know that when hyra shutdown they closed the proxy (I know they are comming back but still was not sure)/

Just because an individual staff member said so doesn’t mean it’s allowed. It’s also possible that they were ill-informed. It needs to be expressly written in Discord guidelines/TOS.

I would recommend using a proper logging service though; logging is not the intended use of Discord.

3 Likes

Currently, Hydra works fine. If it stops working I will update the post

The proxy was never taken down, it has remained fully operational since it launched.

Oh strange it stopped working for me after Hyra shut down. Not sure why that was then.

I’m currently looking to make a webhook proxy with discord if possible. Would you or anyone have any updated information that may help me determine my route here? I would greatly appreciate any help:)

I think hydra was shutdown recently.

4 Likes

Hydra just got sunset permanently.

1 Like