mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-15 18:29:52 +00:00
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
|
Connects to voice and creates a :class:`VoiceClient` to establish
|
||||||
your connection to the voice server.
|
your connection to the voice server.
|
||||||
|
|
||||||
|
This requires :attr:`Intents.voice_states`.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
timeout: :class:`float`
|
timeout: :class:`float`
|
||||||
|
@ -650,6 +650,10 @@ class Intents(BaseFlags):
|
|||||||
- :attr:`VoiceChannel.members`
|
- :attr:`VoiceChannel.members`
|
||||||
- :attr:`VoiceChannel.voice_states`
|
- :attr:`VoiceChannel.voice_states`
|
||||||
- :attr:`Member.voice`
|
- :attr:`Member.voice`
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
This intent is required to connect to voice.
|
||||||
"""
|
"""
|
||||||
return 1 << 7
|
return 1 << 7
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user