From 175004305fbc6a33a879f809ec63535a3166aba4 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Mon, 19 Dec 2016 11:00:06 -0600 Subject: [PATCH] Corrected an issue where the command, and a string were being compared --- cogs/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/core.py b/cogs/core.py index 2767571..5ca6309 100644 --- a/cogs/core.py +++ b/cogs/core.py @@ -172,7 +172,7 @@ class Core: result = [x.replace('RESULT: ', '') for x in description.split('\n') if 'RESULT:' in x] description = [x for x in description.split('\n') if x and 'EXAMPLE:' not in x and 'RESULT:' not in x] # Also get the subcommands for this command, if they exist - subcommands = [x for x in utilities._get_all_commands(cmd) if x.qualified_name != cmd.qualified_name] + subcommands = [x for x in utilities._get_all_commands(cmd) if x != cmd.qualified_name] # The rest is simple, create the embed, set the thumbail to me, add all fields if they exist embed = discord.Embed(title=cmd.qualified_name)