Suggestion: Role based visibility for message components #7402
Unanswered
Rusty-8
asked this question in
API Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋, I'm developing a Discord app where certain interactive buttons/reactions are used to trigger messages OR an ephemeral msg. Ideally, I’d like to attach a button/reaction to a public message that is only visible to users with a specific role (e.g., “XYZ Role”) so that the UI remains clean and professional for users who don’t need or shouldn’t see that button.
Currently, all message components (such as buttons & reactions) are visible to everyone who can view the message. I understand ephemeral responses exist, but these are only available as interaction responses (e.g., from slash commands or buttons) and not on persistent messages.
Would it be possible to implement role‑based visibility for message components? For example, allowing developers to configure a button so that only users with a specified role (or set of roles) can see and interact with it, while it remains hidden for all others.
I believe this feature would greatly improve the UX in cases where interactive elements should be targeted to only a subset of users.
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions