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

Message content is always empty #1270

Open
FedorLap2006 opened this issue Oct 29, 2022 · 0 comments
Open

Message content is always empty #1270

FedorLap2006 opened this issue Oct 29, 2022 · 0 comments
Labels
breaking changes Contains breaking changes. Should be reflected in the changelog

Comments

@FedorLap2006
Copy link
Collaborator

FedorLap2006 commented Oct 29, 2022

To avoid any confusion, due to recent addition of Message Content intent, your application might stop receiving message content.

If you already encountered this problem, here's a quick guide on how to fix it.

First of all you must request or have the message content enabled in Developer Portal for your application.
However, you will still receive empty message content.
This happens due to discordgo.IntentMessageContent intent not being included in IDENTIFY payload by default.

You can add it like this:

s.Identify.Intents |= discordgo.IntentMessageContent

And now you're ready to Go!

@FedorLap2006 FedorLap2006 added breaking changes Contains breaking changes. Should be reflected in the changelog semver ignore Ignore in the release notes labels Oct 29, 2022
Repository owner locked and limited conversation to collaborators Oct 29, 2022
@FedorLap2006 FedorLap2006 pinned this issue Oct 29, 2022
@FedorLap2006 FedorLap2006 removed the semver ignore Ignore in the release notes label Oct 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking changes Contains breaking changes. Should be reflected in the changelog
Projects
None yet
Development

No branches or pull requests

1 participant