From d2f2643db6fd57f9672be57040ffd78cb93fe170 Mon Sep 17 00:00:00 2001 From: flifloo Date: Thu, 9 Apr 2020 14:58:58 +0200 Subject: [PATCH] Oupsi some bug fix of command speak that always return a CommandNotFound --- extensions/speak.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/speak.py b/extensions/speak.py index a24d901..51d959f 100644 --- a/extensions/speak.py +++ b/extensions/speak.py @@ -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)