Advanced Help Command

So i'm trying to make a help command where it will only show in an embed the commands that the user that ran the command can ran, so for example, a staff member will see all staff commands + all public commands, the bot owner will be able to see dev commands + all commands, and a normal member will only be able to see public commands, etc, how would I do something like this?
1 Reply
Favna
Favna•10mo ago
use slash commands with fine tuned permissions so the commands arent accessible for certain users See for an example https://github.com/skyra-project/skyra/blob/main/src/commands/General/help.ts. You'll have to do a lot of manual tracking and stuff but it's possible. not really gonna go into details myself because at that point I'm pretty much spoonfeeding out the command and there's sooooooo much to cover. the most important line is line 106 where preconditions are used to determine if the user can execute the command or not