Discord Integration: A guide on using Discord through Roblox [UPDATED]

A plausible use case for the webhook feature is to convey feedback from the game to Discord. Unless the game has a lot of traffic flow, you can use it to grab feedback from the player base.

This ends up in being an advantage to the developer as the feedback flow is larger than by expecting the user to send a PM.

2 Likes

Looks like Discord has blocked Roblox’s user-agent.
Press F to pay respects.

32 Likes

F :sob:

2 Likes

That’s very unfortunate, anyways is there any other alternatives?

Don’t listen to anyone who might suggest you to use proxies. You’re still breaking the Discord rules with that only now they’re likely to delete everything related to it including your server and account.

A good alternative is entirely dependent on what you used them for. For error handling, use Sentry. For feedback, Trello or GitHub issues.

5 Likes

I’ll leave this guide up for now just in case we manage to get it unblocked by Discord + it contains some useful information in general.

If you liked using Discord for certain parts of your game and feel you cannot suffice without it, I recommend looking at this tutorial by @TechSpectrum regarding Discord bots(not webhooks). Guide to Scripting Bots | Javascript Tutorial | FunCaptcha and New Host Info - #40 by XSS_Injection

2 Likes

:cry: F
it was a good run while it lasted

2 Likes

Just as a future note, the mods have deleted a thread on how to bypass this, showing they also don’t want people revealing how. Don’t do it.

10 Likes

https://twitter.com/lolpython/status/967211620970545153

https://devforum.roblox.com/t/http-post-requests-to-discord-api-failing/97008/61?u=froast

2 Likes

I’d like to note that the key thing to remember if you do use a proxy is to respect rate limits. Check out this article for information on the headers used. Your proxy server should stop sending requests once it hits the rate limit. After that you can either queue requests until the rate limit resets or just blackhole all requests until the limit is reset.

1 Like

My game used to have a system that would fetch moderator logs (i.e ban/kick/warn/mute) from a moderator panel and port them over to a locked moderator channel in the corresponding Discord server, but since this block has been implemented, the channel has been silent, not that we need to kick a lot of people anyway. :stuck_out_tongue:

Aside, my game wasn’t exactly affected that much by the block, because we can still view logs ingame. I don’t know what others used the API for that would cause a big problem; did they use to fetch what was physically being printed in the output of the game in realtime or…?

1 Like

I keep on getting errors like this: “Error 403 - Forbiden” any idea what could be making this error happen?

it works fine in studio but fails in the real game…

1 Like

Please spend some time to read the previous responses in the thread before replying… your problem was already described above and why it happens.

rip discord-roblox

2 Likes

HTTPService sends the request through your own network while running Discord webhook code in studio. Discord blocked the Roblox server user agent. Studio doesn’t use that user agent, so your code will work fine until you publish online.

4 Likes

How to bypass:

Disclamer: I do not know what I am talking about

  1. Get a website
  2. Make the website able to receive/resend data to discord
  3. Send webhook data to website
  4. Website sends it to discord
  5. Bypassed

Long story short: Don’t.

3 Likes

That’s exactly what a proxy/VPN is. A web server to route requests from clients.

2 Likes

Correct post up until your proposed solution. Jake specifically said “through your own server”, and no I’m not arguing semantics. By having people proxy into the same server the same problem arises. Host your own server, don’t use somebody else’s.

I disagree, the issue Discord has is with the amount of data going through each webhook, not from an individual server or service.

My server obeys the rate limits given by Discord.

3 Likes