Remove intents.default and make intents a required parameter #40

Merged
Gnome-py merged 1 commits from required-intents into 2.0 2021-09-01 02:21:37 +00:00
Gnome-py commented 2021-08-31 20:38:01 +00:00 (Migrated from github.com)

Summary

This PR removes the concept of default intents, as of Discord API v8 it is required. This should make any developers unaware of intents have to learn them, allowing further optimized code and less confusion as to (for example) discord.Guild.members being empty for a first time user. I have updated all the examples in the examples folder of the repo, although there may be some more in the docs unchanged.

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)
## Summary <!-- What is this pull request for? Does it fix any issues? --> This PR removes the concept of default intents, as of Discord API v8 it is required. This should make any developers unaware of intents have to learn them, allowing further optimized code and less confusion as to (for example) `discord.Guild.members` being empty for a first time user. I have updated all the examples in the examples folder of the repo, although there may be some more in the docs unchanged. ## Checklist <!-- Put an x inside [ ] to check it, like so: [x] --> - [x] If code changes were made then they have been tested. - [x] I have updated the documentation to reflect the changes. - [ ] This PR fixes an issue. - [ ] This PR adds something new (e.g. new method or parameters). - [x] This PR is a breaking change (e.g. methods or parameters removed/renamed) - [ ] This PR is **not** a code change (e.g. documentation, README, ...)
Sign in to join this conversation.
No description provided.