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 toolkit11mo 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
Danial11mo ago
Not possible
Frostino
FrostinoOP11mo 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
FrostinoOP11mo ago
I'm pretty sure it can be done but I don't know how?
Danial
Danial11mo ago
Yes, you can't do that
lwz
lwz11mo 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
monbrey11mo 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