nicolaipre / DiscordPhone

DiscordPhone - A bot that will let you call phone numbers directly from Discord.
MIT License
33 stars 7 forks source link

Voice channel join hangs at self.voiceclient = await command.author.voice.channel.connect() #24

Open xhausted110 opened 5 months ago

xhausted110 commented 5 months ago

After issuing a !join command, the bot hangs at self.voiceclient = await command.author.voice.channel.connect(). It successfully joins the voice channel, however, voice.channel.connect() doesn't return anything, thus causing the bot to hang at that point.

This appears to be a known issue with older versions of discord.py, as shown here: https://github.com/Rapptz/discord.py/issues/2372

Updating to the latest version of the Discord.py fork causes other issues:

# docker run a33e5e666956dcbe1c508f97e31a954bc9651b60e1eab85467bc72d045adedb0 Traceback (most recent call last): File "run.py", line 7, in from discordphone.DiscordPhone import DiscordPhone File "/discordphone/DiscordPhone.py", line 7, in import discord File "/discord/init.py", line 21, in from typing import NamedTuple, Literal ImportError: cannot import name 'Literal' #