mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Make PyNaCl optional
This commit is contained in:
1 parent
197e52994e
commit
e1f8bdc440
3 files changed
+15
-2
No files matched your search
@@ -154,6 +154,10 @@ class Client:
|
||||
self._is_logged_in = asyncio.Event(loop=self.loop)
|
||||
self._is_ready = asyncio.Event(loop=self.loop)
|
||||
|
||||
if VoiceClient.warn_nacl:
|
||||
VoiceClient.warn_nacl = False
|
||||
log.warning("PyNaCl is not installed, voice will NOT be supported")
|
||||
|
||||
# internals
|
||||
|
||||
@asyncio.coroutine
|
||||
|
||||
Reference in new issue
Block a user