From 1e448a8fec1c246bbf0868d593b30a844ddab6f3 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Wed, 22 Jul 2020 00:18:57 +0100 Subject: [PATCH] Including sub commands --- cogs/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/test.py b/cogs/test.py index 19c28619..3d3384a9 100644 --- a/cogs/test.py +++ b/cogs/test.py @@ -38,7 +38,7 @@ class helper(commands.Cog, command_attrs=dict(hidden=True)): if x == y: coggers = Embed(colour=enso_embedmod_colours) cogger_info = '' - for c in self.bot.get_cog(y).get_commands(): + for c in self.bot.get_cog(y).walk_commands(): if not c.hidden: cogger_info += f"**{c.name}** - {c.help}\n" coggers.add_field(name=f"{cog[0]} Module - {self.bot.cogs[cog[0]].__doc__}", @@ -46,7 +46,7 @@ class helper(commands.Cog, command_attrs=dict(hidden=True)): found = True if not found: for x in self.bot.cogs: - for c in self.bot.get_cog(x).get_commands(): + for c in self.bot.get_cog(x).walk_commands(): if c.name == cog[0]: coggers = Embed(colour=enso_embedmod_colours) coggers.add_field(name=f"{c.name} - {c.help}",