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: if x == y:
coggers = Embed(colour=enso_embedmod_colours) coggers = Embed(colour=enso_embedmod_colours)
cogger_info = '' 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: 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__}", coggers.add_field(name=f"{cog[0]} Module - {self.bot.cogs[cog[0]].__doc__}",
value=cogger_info) value=cogger_info)
found = True found = True

Loading…
Cancel
Save