Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot not reading messages or responding to commands after September 1, 2022 #156

Closed
ryanpohlner opened this issue Sep 18, 2022 · 5 comments
Closed

Comments

@ryanpohlner
Copy link

FYI to anyone with this issue. From jagrosh/MusicBot#1215 (the same applies to this bot):

As of September 1st, the Message Content Intent is being enforced, which is the "intent" that allows a bot to read the contents of messages. JMusicBot needs this intent to be able to have custom-prefixed commands. If your music bot stopped responding to commands on September 1st, it is almost certainly because the bot's intents have not been migrated and you'll need to update its settings in the developer portal. (Note that if your bot is in more than 75 servers, it will likely be permanently broken. JMusicBots should be kept private).

The Solution

  1. Head on over to https://discord.com/developers/applications and find your bot application.
  2. Click on the Bot tab on the sidebar
  3. Turn Message Content Intent (should be the last checkbox on the page) ON
  4. Shut down and restart your bot
@hofrob
Copy link

hofrob commented Mar 21, 2023

I know it's probably unrelated, but my bot does not play sounds anymore in voice chat. Do you know if anything changed recently?

Sometimes I see "UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions" in the logs. Or this one "Error [VOICE_CONNECTION_TIMEOUT]: Connection not established within 15 seconds."

It's still listening to commands ... but for some reason we can't hear it. I tried giving it more permissions, but this didn't help either.

@dextraa9791
Copy link

I know it's probably unrelated, but my bot does not play sounds anymore in voice chat. Do you know if anything changed recently?

Sometimes I see "UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions" in the logs. Or this one "Error [VOICE_CONNECTION_TIMEOUT]: Connection not established within 15 seconds."

It's still listening to commands ... but for some reason we can't hear it. I tried giving it more permissions, but this didn't help either.

Im having the same issue. Since like 2 days. Also seeing the same errors in the logs.

@markokajzer
Copy link
Owner

markokajzer commented Mar 22, 2023

Yeah seems like some things have changed on Discord's site and the bot is now fully kaputt. I am currently in the progress of updating the bot to a newer discord.js (and ytdl) version. We'll also update the docs a bit to reflect any new things you need to check here or there.

ETA ~weekend

For progress updates, join our Discord :)

@hofrob
Copy link

hofrob commented Mar 22, 2023

Awesome, thank you so much!

@markokajzer
Copy link
Owner

So the bot is upgraded to Discord.js v13 and it can connect to voice again.

To make it resond to messages, not that you need to enable the "message content intent" in your Discord application 👇

image

You will find this setting in the Bot tab, e.g. https://discord.com/developers/applications/<applicationid>/bot

I'll update the wiki / docs accordingly.

The proper solution of course is to move to Slash commands, which we're thinking about in the Discord at the moment. If you have something to add to that discussion, feel free to join in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants