When getting a list of roles for guild; is there a way to filter out roles with admin permissions?

Maybe a silly question. I have a component that pulls the list of roles from my discord server, and let's the user assign discord roles to users based on a specific action. However, I don't want to list the admin role (or any roles with admin permissions). Obviously I can filter this once the request is complete, but I'm wondering if there's a way to do it on the request layer.
2 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Squid
Squid3y ago
As of now, you can't filter the roles displayed in role select menus or role slash command options, assuming that you're using either one of those
Want results from more Discord servers?
Add your server