Jump to content
View in the app

A better way to browse. Learn more.

ClassiCube Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MCGalaxy Discord Relay Bot

I wanted to make a discord relay bot for my server, so I followed this guide: https://github.com/ClassiCube/MCGalaxy/wiki/Discord-relay-bot. However, on server startup, it said

Error sending request to Discord API (POST /channels/1393772596650053733/messages)

!!!Error (The remote server returned an error: (403) Forbidden.) - See Logs tab for more details

Discord API returned: {"message": "Missing Access", "code": 50001}

And when I looked at logs, there seemed to be a long string of incomprehensible gibberish, which I have added below for your discretion.

Type: WebException

Source: System

Message: The remote server returned an error: (403) Forbidden.

Trace: at System.Net.HttpWebRequest.GetResponseFromData (System.Net.WebResponseStream stream, System.Threading.CancellationToken cancellationToken) [0x0017e] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0

at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Tas [TResult] workerTask, System.Int32 timeout, System.Action abort, S1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x00118] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0

at System.Net.HttpWebRequest.GetResponse () [0x00019] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0

at MCGalaxy.Modules.Relay.Discord.DiscordApiClient.HandleNext () [0x000bc] in <f309205a56554c158910ca5ef34fa632>:0

Has anyone experienced this before or knows how to fix this? Thanks.

Creator of the InfiniBuild server.

Solved by RainZhang

Go to solution

Featured Replies

I think you did not enable the message intents in the settings for the bot on the Discord developer panel.

Owner and founder of Good old Lava Survival, MCGalaxy plugin developer, Master of evil hacks not supported by UnknownShadow.

Does the bot have the Send Messages permission in the channel it is set to send messages to?

Owner and founder of Good old Lava Survival, MCGalaxy plugin developer, Master of evil hacks not supported by UnknownShadow.

  • Author
  • Solution

Found out the problem, forgot to add the bot to my server *facepalms*.

Creator of the InfiniBuild server.

READ THE RULES BEFORE YOU POST

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.