Clarify connect() requires Intents.voice_states
This commit is contained in:
parent
769db38401
commit
f586f4dfbd
@ -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`
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user