help with a secret buttons

I would like these two buttons to be visible solely and exclusively to the admin role and not to the members, how can I achieve this?
No description
7 Replies
d.js toolkit
d.js toolkit10mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Danial
Danial10mo ago
Not possible
Frostino
FrostinoOP10mo ago
Are you sure? I want the Close button and the list button to be seen only by admins and not by members.
No description
Frostino
FrostinoOP10mo ago
I'm pretty sure it can be done but I don't know how?
Danial
Danial10mo ago
Yes, you can't do that
lwz
lwz10mo ago
Or use 2 differents StringSelectMenu based on user roles. I mean, I know buttons can't be displayed only for admins. So I'm just proposing what I did on my own bot ^^ What I'm saying here is that you can just put an "Actions" button, thats trigger a selectmenu based on your role/perms.
monbrey
monbrey10mo ago
You could just do that without the need for an extra select menu though. Show the buttons. Perm check them
Want results from more Discord servers?
Add your server