mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-12-02 16:04:18 +00:00
Fixato un bug in cui /cv non restituiva nessun messaggio
This commit is contained in:
parent
fd98640572
commit
86b4d770cc
1 changed files with 1 additions and 1 deletions
|
@ -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]):
|
async def cmd_cv(channel: discord.Channel, author: discord.Member, params: typing.List[str]):
|
||||||
if author is None:
|
if author is None:
|
||||||
await client.send_message(channel, "⚠ Questo comando richiede un autore.")
|
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!")
|
await client.send_message(channel, "⚠ Non sei in nessun canale!")
|
||||||
return
|
return
|
||||||
global voice_client
|
global voice_client
|
||||||
|
|
Loading…
Reference in a new issue