Displaying command signature

Switching to walk commands()
pull/8/head
sgoudham 4 years ago
parent f548be9b3f
commit 426480a804

@ -38,9 +38,9 @@ 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"
cogger_info += f"**{c.qualified_name}** - {c.help}\n"
coggers.add_field(name=f"{cog[0]} Module - {self.bot.cogs[cog[0]].__doc__}",
value=cogger_info)
found = True

Loading…
Cancel
Save