Discord Webhooks to Roblox

Alright so, I recently thought about making a system where when I update my Roblox game, a Webhook sends a message to a Discord server of mine.

The process I thought of, was to use HTTP requests to get the update info of my game. I then recently heard that making the Roblox website linked requests is not possible.

I wonder if it’s possible to do so.

Thanks.

Did you used the search bar? In 10 seconds I found this topic:

I already read this topic but it didn’t really help my as it doesn’t involve the Roblox website.

You said you want to use a HTTP request from Roblox to a Discord Webhook. This is what I send.

Yeah, the request itself should come from the Roblox website. But as I said before, apparently it isn’t possible.

I think you would have to use a browser extension like how there is Roblox+.

Just like @Afraid4Life mentioned, you would have to use a third-party service outside of the Roblox game, unless you can read new updates from there. Either way, the only way to do this is to make or use some sort of plugin/service that will detect new updates and fire the webhook. It is possible, just need to do some more work, research, and possibly buy a VPS or have your computer open 24/7. If you are the only one who controls updates, then you can simply make a script (outside of Roblox) that will fire the webhook with some custom arguments. If you can read the updates from in-game, then you can use the post that @TheTurtleMaster_2 mentioned as it will make everything way easier. Other than that, you would have to make your own service/plugin that will be constantly reading the version of your game and when it finds an update, then it fires a webhook. Hope this helped.

Alright so, I thought about coding something out of Roblox to read the updated html value but I can’t really find any program related to Discord webhooks to be able to do so.

Most languages should support HTTP Requests. Discord webhooks use JSON, which means that you should be able to make an HTTP Request with the proper JSON code. If your language can read HTML, then I am pretty certain that it will be able to make HTTP Requests. Which language are you going to use?

One option for implementing this would be to create your own server (on Glitch, RunKit or similar), which will poll the API to check if the game has updated. When it updates, then fire the webhook.

Bear in mind that Glitch projects on the free tier automatically shut down after 15 minutes of inactivity, so you’d need to use a service such as IFTTT to reactivate your server at specified intervals.

2 Likes

Interesting, I’ll do some research on this thanks.

Just a follow up: if it’s of any use I have a server that’ll generate JSON for embedding a game in Discord, which includes ratings and cost (if paid access).

You can access it here (just replace placeId with the Place ID):
https://roblox-embed-discord-jpcnmriva99q.runkit.sh/placeId.json

Alternatively, you can use the following to embed as a link with basic info (name, creator, description and thumbnail)–this should also be compatible with Twitter:
https://roblox-embed-discord-jpcnmriva99q.runkit.sh/placeId

Edit: I’ve also just added a method of pushing an embedded game to a discord webhook:
https://roblox-embed-discord-jpcnmriva99q.runkit.sh/push/placeId/webhookId/webhookToken

placeId → The ID of the place you wish to embed
webhookId → The ID snowflake of the webhook
webhookToken → The secure token of the webhook

Here’s how the embed looks when using this endpoint:


Examples:
https://roblox-embed-discord-jpcnmriva99q.runkit.sh/920587237.json

2 Likes

I have a plugin called SharedSystem that can integrate your webhook to send messages to your server, if wanted. For me, it makes life a lot easier.

2 Likes