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

httpservice
discord
webhooks
#49

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.

1 Like

#50

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

23 Likes

#51

F :sob:

1 Like

#52

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

0 Likes

#53

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.

3 Likes

#54

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

1 Like

#55

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

2 Likes

#56

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.

8 Likes

#57

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

1 Like

#58

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.

0 Likes

#59

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…?

0 Likes

#60

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

0 Likes

#61

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

0 Likes

#62

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

0 Likes

#63

rip discord-roblox

2 Likes

#64

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.

2 Likes

#65

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

#66

@Kampfkarren’s post marked as solution is incorrect. You can definitely use proxy servers to send webhook requests.


(lolpython (Jake) is the lead backend developer at Discord)

My proxy server is public to use and I’ve checked with Discord staff to ensure you won’t be breaking any rules.

It’s very simple to use, you just replace “discordapp.com” in your webhook URL with “discord.osyr.is”

9 Likes

Webhook feedback system not working
#67

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

2 Likes

#68

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.

0 Likes