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?
7 Replies
- 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!Not possible
Are you sure? I want the Close button and the list button to be seen only by admins and not by members.
I'm pretty sure it can be done but I don't know how?
Yes, you can't do that
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.
You could just do that without the need for an extra select menu though. Show the buttons. Perm check them