Add missing implementation for create_stream_player.

This commit is contained in:
Rapptz 2015-12-10 22:39:00 -05:00
parent 98ba68bb66
commit bec7071c48

View File

@ -451,6 +451,7 @@ class VoiceClient:
StreamPlayer
A stream player with the operations noted above.
"""
return StreamPlayer(stream, self.encoder, self._connected, self.play_audio, after)
def play_audio(self, data):
"""Sends an audio packet composed of the data.