What I want to do is trigger the bot command help that is included with commands.Bot()
(e.g /help
returns all slash commands registered, and /help <command>
returns the description of that slash command).
A portion of my code:
class MyHelp(commands.HelpCommand):
async def send_bot_help(self, mapping):
if self.context.guild.id != master_guild:
return
names = [command.name for command in bot.tree.get_commands()] # iterating through the commands objects getting names
available_commands = "\n".join(names) # joining the list of names by a new line
embed = discord.Embed(title=f"Commands ({len(names)}):",description=available_commands)
embed.set_footer(text=f"