Browse Source

Clarify connect() requires Intents.voice_states

pull/7476/head
Imayhaveborkedit 4 years ago
committed by GitHub
parent
commit
f586f4dfbd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/abc.py
  2. 4
      discord/flags.py

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

4
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

Loading…
Cancel
Save