async def help(self, ctx):
pages = []
prefix = "/"
em = discord.Embed(color=discord.Color.blurple(),
description=f"Use the pagination to check the specific module's commands!\nList of modules:")
em.set_author(name="Skyblock Insurance", icon_url="https://cdn.discordapp.com/app-icons/946690242541420624/eba76b325390ea01e9a9178a77375ebb.webp")
for cog in self.bot.cogs:
em.add_field(name=cog, value="\u200b")
em.set_footer(text=f"Made by team h.")
pages.append(em)
for cog in self.bot.cogs:
cog_emb = discord.Embed(color=discord.Color.blurple(), description=f"**{cog.capitalize()}'s commands:**")
cog_emb.set_author(name="Skyblock Insurance", icon_url="https://cdn.discordapp.com/app-icons/946690242541420624/eba76b325390ea01e9a9178a77375ebb.webp")
for command in self.bot.get_cog(cog).walk_commands():
if command.full_parent_name:
command_name = command.full_parent_name + " " + command.name
else:
command_name = command.name
cog_emb.add_field(name=f"{prefix}{command_name}",
value=f"""
```{command.description}```""")
pages.append(cog_emb)
This code works fine enough with the only wrong thing being that it fetches subgroups of slash commands as commands too, which is quite annoying
Is there any way to fix this? I am looking through the docs rn to find anything
