Display all commands in guild a member has permissions on

I cant figure it out guild.commands.cache.filter((c) =>member.permissions )
10 Replies
d.js toolkit
d.js toolkit13mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Not So Marv
Not So Marv13mo ago
Try using c.permissions instead of member.permissions
Kumar
Kumar13mo ago
I want to to create clickable commands. There are members who can't type them 😄 Another way would be to just show commands which are public to type something 😄 😄 enter
Not So Marv
Not So Marv13mo ago
If a member cannot type a command then they cannot use them at all.
Kumar
Kumar13mo ago
They dont understand how to use slash commands in the chat so giving them just a click is easier xD
Not So Marv
Not So Marv13mo ago
Clickable commands => click it and it puts it in the message bar to run.
Kumar
Kumar13mo ago
you can do that ? yeah thats what i plan to achieve
Not So Marv
Not So Marv13mo ago
/Command:12345668901224567890 It is /:name:id correct? No need side carrots too Gotcha
Kumar
Kumar13mo ago
but for me they are not clickable thinkLul/airhorn okk only mobile thanks !! Thanks guys
d.js docs
d.js docs13mo ago
Tag suggestion for @_kkumar: Frequently Asked Questions: learn more