How to get chat messages from discord to roblox

I’m looking how to get a Discord Chat message over to Roblox, I just need to be able to get everything that is sent over from discord to roblox thats it

3 Likes

From my knowledge, this is completely impossible. I might be wrong. I do know Discord blocked any communication from roblox.com a long time ago, and it still is blocked. I also know that proxies can be used to get around this. I’m not the best with this kind of stuff, but I do know it probably won’t be possible.

And if anyone knows I’m wrong, please tell me

1 Like

I’m not sending anything to Discord, I’m sending FROM discord TO Roblox. Its possible to send things to Discord from roblox with webhooks. Also Roblox Blocked Discord, but I think with the new webhook thing roblox released its possible.

It’s not possible to transmit data to Roblox from Discord directly as Roblox does not have any support for incoming http requests. You would need to create some sort of web server to act as a middleman where your game server sends a request to the web server to relay whatever data you’re trying to transfer.

You could try using the Messaging Service API with Open Cloud for Roblox hooked up to a bot. Otherwise, you’ll be out of luck if you’re looking for direct communication.

If this doesn’t satisfy your use case, you could always have both your Discord and your Roblox game constantly listening and receiving information from an external database giving the illusion of direct communication, although I probably wouldn’t personally go this route.

1 Like

I know theres a way where I go to a middleman, such as repl it, etc, but all the methods I’ve seen are outdated and don’t really work

I was trying to say that it is blocked both ways. Sorry if I worded it poorly.

You can send it by just change URL like this image
image
image

You just have to change from https:/discord.com/api/webhooks/*** to https://hooks.hyra.io/api/webhooks/*****

local HttpService = game:GetService("HttpService")
local url = "https://hooks.hyra.io/api/webhooks/your webhook key" --hooks.hyra.io 

game.Players.PlayerAdded:Connect(function(Player)
	local data = {
		["content"] = Player.Name.."Player joined"
	}
	local FinalData = HttpService:JSONEncode(data)
	HttpService:PostAsync(url,FinalData)
end)

game.Players.PlayerRemoving:Connect(function(Player)
	local data = {
		["content"] = Player.Name.."Player left"
	}
	local FinalData = HttpService:JSONEncode(data)
	HttpService:PostAsync(url,FinalData)
end)

1 Like

The OP is asking for Discord → Roblox, not Roblox → Discord

2 Likes

Roblox doesn’t support inbound HTTP requests afaik, however you might be able to implement a hacky system that does this. I’d set up a discord bot which can log messages, then just post the most recent message to an HTTP server. You can then call HTTPService:GetAsync() on the IP/Port you’re hosting the HTTP server on ( Like this: http://YOUR_IP:PORT/). From there, you can do anything you want with it in Roblox. You can do both the HTTP server stuff and the discord bot in python pretty easily with the discord.py library. (Just make sure to forward the port you’d like to do this on so that it can be accessed Roblox servers)

Disclaimer: Keep in mind that I know very little about networking and this could be an awful solution that exposes your home network to hackers and such.

yeah, I’m looking for DISCORD → ROBLOX

Then how does bloxlink achieve this? They use a discord to roblox game verification system, thats what I’m trying to achieve.

It’s likely that they use Flask or just basic http.server to handle communication from their program to Roblox. (i.e. roblox server sends getrequest to see which players it needs to check for, program sees this, sends list of users who have to verify in-game, one of the users then joins, server sends post request to say “Hey, this player joined so you can verify them now!”)

1 Like

You will need to create a discord APP(robot) and use MessagingService Cloud API