Josh
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
discord/voice_client.py
|
|
@ -592,7 +592,7 @@ class VoiceClient(VoiceProtocol): |
|
|
|
raise ClientException('Already playing audio.') |
|
|
|
|
|
|
|
if not isinstance(source, AudioSource): |
|
|
|
raise TypeError(f'source must an AudioSource not {source.__class__.__name__}') |
|
|
|
raise TypeError(f'source must be an AudioSource not {source.__class__.__name__}') |
|
|
|
|
|
|
|
if not self.encoder and not source.is_opus(): |
|
|
|
self.encoder = opus.Encoder() |
|
|
|