В этом сообщении ( как мне заставить моего бота discord.py воспроизводить mp3 в голосовом канале? ) рекомендовать этот кусок кода:
player = vc.create_ffmpeg_player('vuvuzela.mp3', after=lambda: print('done'))
Вот моя строка:
self.player = await self.vc.create_ffmpeg_player('song.mp3')
Но после того же действия я получаю эту ошибку:
Traceback (most recent call last):
File "/home/lam/miniconda3/lib/python3.7/site-packages/discord/client.py", line 270, in _run_event
await coro(*args, **kwargs)
File "bot.py", line 41, in on_message
self.player = await self.vc.create_ffmpeg_player('song.mp3')
AttributeError: 'VoiceClient' object has no attribute 'create_ffmpeg_player'
Они изменили документацию?