1
0
Fork 0

Oupsi some bug fix of command speak that always return a CommandNotFound

This commit is contained in:
Ethanell 2020-04-09 14:58:58 +02:00
parent ba3d5d7f06
commit d2f2643db6

View file

@ -23,7 +23,7 @@ class Speak(commands.Cog):
@commands.guild_only()
async def speak(self, ctx: commands.Context):
if ctx.invoked_subcommand is None:
if ctx.args:
if ctx.subcommand_passed:
raise CommandNotFound
elif ctx.author.voice is None or ctx.author.voice.channel is None:
await (await ctx.send("Your not in a voice channel !")).delete(delay=30)