Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playing issue #9

Open
RakibRyan opened this issue Oct 6, 2021 · 0 comments
Open

playing issue #9

RakibRyan opened this issue Oct 6, 2021 · 0 comments

Comments

@RakibRyan
Copy link

[youtube] VJI86nC4muM: Downloading webpage
Ignoring exception in command yt:
Traceback (most recent call last):
File "D:\code\python\simple music bot\venv\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "D:\code\python\simple music bot\DiscordJockey\musicbot\commands\music.py", line 27, in _play_youtube
await audiocontroller.add_youtube(track)
File "D:\code\python\simple music bot\DiscordJockey\musicbot\audiocontroller.py", line 92, in add_youtube
await self.add_song(link)
File "D:\code\python\simple music bot\DiscordJockey\musicbot\audiocontroller.py", line 116, in add_song
await self.play_youtube(link)
File "D:\code\python\simple music bot\DiscordJockey\musicbot\audiocontroller.py", line 164, in play_youtube
self.voice_client.play(discord.FFmpegPCMAudio(extracted_info['url']), after=lambda e: self.next_song(e))
AttributeError: 'NoneType' object has no attribute 'play'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "D:\code\python\simple music bot\venv\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "D:\code\python\simple music bot\venv\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "D:\code\python\simple music bot\venv\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'NoneType' object has no attribute 'play'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant