Skip to content

Update main.py #2

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matheus0almeida
Copy link

Added intents to bot initialization

In order to comply with Discord's updated requirements, I added the necessary intents for the bot to function properly. The intents object is now configured to enable all events, allowing the bot to receive and handle a wider range of interactions, such as message content, member updates, and presence changes. This is required for the bot to work with specific events, particularly after recent Discord API changes.

The discord.Intents.all() method was used to ensure all events are accessible, ensuring the bot has the required permissions to fully interact with the server.

Added intents to bot initialization

In order to comply with Discord's updated requirements, I added the necessary intents for the bot to function properly. The `intents` object is now configured to enable all events, allowing the bot to receive and handle a wider range of interactions, such as message content, member updates, and presence changes. This is required for the bot to work with specific events, particularly after recent Discord API changes. 

The `discord.Intents.all()` method was used to ensure all events are accessible, ensuring the bot has the required permissions to fully interact with the server.
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

Successfully merging this pull request may close these issues.

1 participant