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

[Audio] Ensure commands that need the voice channel can't be run by a user not in the voice channel #3120

Closed
Drapersniper opened this issue Nov 14, 2019 · 0 comments · Fixed by #3122
Labels
Type: Bug

Comments

@Drapersniper
Copy link
Contributor

@Drapersniper Drapersniper commented Nov 14, 2019

FFS Draper you dumb son ...

Traceback (most recent call last):
File "/home/martinebots/martinebotsvenv/lib/python3.7/site-packages/discord/ext/commands/core.py", line 79, in wrapped
ret = await coro(*args, **kwargs)
File "/home/martinebots/martinebotscogs/cogs_modified/audio/audio.py", line 6455, in seek
is_alone = await self._is_alone(ctx, ctx.author)
File "/home/martinebots/martinebotscogs/cogs_modified/audio/audio.py", line 6705, in _is_alone
elif ctx.guild.get_member(member.id).voice.channel.members == 1:
AttributeError: 'NoneType' object has no attribute 'channel'

Note: Making this so i dont forget to fix it in a couple of hours

@Drapersniper Drapersniper added the Type: Bug label Nov 14, 2019
mikeshardmind pushed a commit that referenced this issue Dec 20, 2019
…was None (#3122)

* Fix attribute Fixes #3120

Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com>

* Chore

Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant