Clarify connect() requires Intents.voice_states

This commit is contained in:
Imayhaveborkedit 2021-08-24 00:02:21 -04:00 committed by GitHub
parent 769db38401
commit f586f4dfbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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`

View File

@ -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