#Making slash help commands
1 messages · Page 1 of 1 (latest)
Lol
Now im using this, and idk what error is raised when embed is at max fields lol
Hello Guys,
I need help, actually I'm trying to make a help command which automatically detects slash cmd's and it cogs.
Can someone give me an example how to do it
Um
why do you need that?
Cuz I need it?
cog.get_commands https://docs.pycord.dev/en/master/api.html#discord.Cog.get_commands
Still didn't understood
what
I didn't understand
so then you just work through those for your help command
I need a demo
though considering how descriptive slash commands are you really don't need one
30 cmds so I need it
but they literally all show up when you type /
with names, descriptions, argument descriptions
discord itself is the help UI
Do u think users has patience to see at least 10 slash cmds
?? they search for the command they want
there's no need to infantilize your userbase, they're probably at least slightly more capable than you're making them out to be
i'm not saying you can't have them, it's just unnecessary lol
It is necessary for me
most current bots only have them because they already had a help command from prefix commands
I get spammed for making help cmd
It does exist for detecting slash cmd's in cogs
as for that demo, something like
for cog_name, cog in bot.cogs.items():
for command in commands:
name = command.name
description = command.description
...
you can at least figure out what you want to do from there
I should put this after slash decorator and async def?
however you plan to create the command
@bot.slash_command()
async def help(ctx) :
for cog_name, cog in bot.cogs.items():
for command in commands:
name = command.name
description = command.description
embed=discord.Embed(
title = "Help Commands" ,
description=
)
await ctx.respond(embed=embed)
8'm confused :o
all the demo i posted does is go through every cog and every slash command in that cog
it's up to you to do something with that
e.g. maybe you append all the names and descriptions to a list, then outside the loop you format that and make an embed
Ye I want to put it as embed
That's not how
U can do it as embed