Jump to content

MCGalaxy Discord Relay Bot

Posted

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.

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.

READ THE RULES BEFORE YOU POST

Create an account or sign in to comment