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

AttributeError: 'NoneType' object has no attribute 'is_playing' #9

Open
Arief47 opened this issue Oct 14, 2021 · 2 comments
Open

AttributeError: 'NoneType' object has no attribute 'is_playing' #9

Arief47 opened this issue Oct 14, 2021 · 2 comments

Comments

@Arief47
Copy link

Arief47 commented Oct 14, 2021

I've been balding my head for 5 hours wondering why this happen. anyone care to explain? I did installed all dependencies. Apologies in advance

`Bot online
Ignoring exception in command play:
Traceback (most recent call last):
File "C:\Users\ahmad\PycharmProjects\Discord bot\venv\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\ahmad\PycharmProjects\Discord bot\Rihito bot.py", line 41, in play
if not voice.is_playing():
AttributeError: 'NoneType' object has no attribute 'is_playing'

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

Traceback (most recent call last):
File "C:\Users\ahmad\PycharmProjects\Discord bot\venv\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\ahmad\PycharmProjects\Discord bot\venv\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\ahmad\PycharmProjects\Discord 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 'is_playing'
`

@Darkkronos
Copy link

which dpy version are you in. I use disnake v2 and it works fine

@benniestudios
Copy link

I have the exact same problem. Does anyone know what I could try?

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

3 participants