1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-30 15:04:18 +00:00

Fixato un bug in cui /cv non restituiva nessun messaggio

This commit is contained in:
Steffo 2018-07-31 18:22:36 +02:00
parent fd98640572
commit 86b4d770cc

View file

@ -300,7 +300,7 @@ async def cmd_ping(channel: discord.Channel, author: discord.Member, params: typ
async def cmd_cv(channel: discord.Channel, author: discord.Member, params: typing.List[str]):
if author is None:
await client.send_message(channel, "⚠ Questo comando richiede un autore.")
if author.voice.voice_channel is None:
if author.voice is None or author.voice.voice_channel is None:
await client.send_message(channel, "⚠ Non sei in nessun canale!")
return
global voice_client