Discord-Bot icon indicating copy to clipboard operation
Discord-Bot copied to clipboard

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

Open Arief47 opened this issue 3 years ago • 2 comments

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' `

Arief47 avatar Oct 14 '21 06:10 Arief47

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

Darkkronos avatar Oct 26 '21 13:10 Darkkronos

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

benniestudios avatar Jun 07 '22 17:06 benniestudios