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 toolkit2y 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 Marv2y ago
Try using c.permissions instead of member.permissions
Kumar
KumarOP2y 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 Marv2y ago
If a member cannot type a command then they cannot use them at all.
Kumar
KumarOP2y 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 Marv2y ago
Clickable commands => click it and it puts it in the message bar to run.
Kumar
KumarOP2y ago
you can do that ? yeah thats what i plan to achieve
Not So Marv
Not So Marv2y ago
/Command:12345668901224567890 It is /:name:id correct? No need side carrots too Gotcha
Kumar
KumarOP2y ago
but for me they are not clickable thinkLul/airhorn okk only mobile thanks !! Thanks guys
d.js docs
d.js docs2y ago
Tag suggestion for @_kkumar: Frequently Asked Questions: learn more
Want results from more Discord servers?
Add your server