Cog-Creators / Red-DiscordBot

A multi-function Discord bot
https://docs.discord.red
GNU General Public License v3.0
4.84k stars 2.31k forks source link

OAuth Bot: Multible voice channels. #127

Closed Kowlin closed 8 years ago

Kowlin commented 8 years ago

The new authentication tokens do not support multible voice servers:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/site-packages/discord/client.py", line 267, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "red.py", line 63, in on_message
    await bot.process_commands(message)
  File "/usr/local/lib/python3.5/site-packages/discord/ext/commands/bot.py", line 608, in process_commands
    yield from command.invoke(ctx)
  File "/usr/local/lib/python3.5/site-packages/discord/ext/commands/core.py", line 380, in invoke
    yield from injected(*ctx.args, **ctx.kwargs)
  File "/usr/local/lib/python3.5/site-packages/discord/ext/commands/core.py", line 47, in wrapped
    ret = yield from coro(*args, **kwargs)
  File "/home/robert/docubot/cogs/audio.py", line 71, in play
    if await self.check_voice(msg.author, msg):
  File "/home/robert/docubot/cogs/audio.py", line 539, in check_voice
    elif len(v_channel.voice_members) == 1:
AttributeError: 'NoneType' object has no attribute 'voice_members'
tekulvw commented 8 years ago

still not in discordpy, there are forks floating around though

Kowlin commented 8 years ago

Awaiting fix from Danny.

tekulvw commented 8 years ago

Still waiting, will be waiting for a while