diff options
| author | Imayhaveborkedit <[email protected]> | 2021-08-24 00:02:21 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-24 00:02:21 -0400 |
| commit | f586f4dfbd2b7bd86a84eeeb73b4cd100ff70286 (patch) | |
| tree | 5f5f95a44d6e0b64992f2565aa6870a44c725d2c | |
| parent | Fix typing error in sticker edit (diff) | |
| download | discord.py-f586f4dfbd2b7bd86a84eeeb73b4cd100ff70286.tar.xz discord.py-f586f4dfbd2b7bd86a84eeeb73b4cd100ff70286.zip | |
Clarify connect() requires Intents.voice_states
| -rw-r--r-- | discord/abc.py | 2 | ||||
| -rw-r--r-- | discord/flags.py | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/discord/abc.py b/discord/abc.py index a2ca1e48..fd2dc4bb 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -1633,6 +1633,8 @@ class Connectable(Protocol): Connects to voice and creates a :class:`VoiceClient` to establish your connection to the voice server. + This requires :attr:`Intents.voice_states`. + Parameters ----------- timeout: :class:`float` diff --git a/discord/flags.py b/discord/flags.py index dad88d93..fb468c50 100644 --- a/discord/flags.py +++ b/discord/flags.py @@ -650,6 +650,10 @@ class Intents(BaseFlags): - :attr:`VoiceChannel.members` - :attr:`VoiceChannel.voice_states` - :attr:`Member.voice` + + .. note:: + + This intent is required to connect to voice. """ return 1 << 7 |