New options for application connection metadata type #7124
Unanswered
FinOCE
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
-
Semi rant ahead because I've spent the past hour or so trying to shoehorn my idea into the current metadata types and only managed to come up with half solutions...
I'm currently working on a project that I would like to use linked roles for, however the current options for metadata types are very limiting in what they can support. As an example, if I want to make a check for if a user has a certain flag on my platform, the only option to be able to check would be a BOOLEAN_EQUALS configured for that specific permission. Also with the limit of 5 connection conditions, this is extremely limiting as I can only pick a handful of things to actually allow linked roles for.
Current metadata types: https://discord.com/developers/docs/resources/application-role-connection-metadata#application-role-connection-metadata-object-application-role-connection-metadata-type
I would like to see more options like ARRAY_CONTAINS, where (for example) I can configure my metadata to send an array of flags and then the linked role connection condition let me specify a value to check if it exists in particular. That way a user can have many roles assigned, and the condition can be used to check any of those specific permissions (not just 5, which would also prevent any other conditions being made available). Could make it nice to use by allowing dropdown options to be specified in the metadata resource too. Allowing bots to create linked roles would also be a nice addition, though I expect there's a reason that was not made an option already.
Given linked roles don't seem to have changed in quite a while for all I know they're pretty much a dead product but figured I'd put this out there anyway. I'll probably just stick to managing regular roles through a bot which can handle all these special conditions, but the linked roles approach would be nice, especially in terms of letting users create their own mix-and-match conditions for roles. The label next to peoples' names is also a nice option you can't get any other way.
As a side note, please move the linked roles into the channel and roles section, they're so lost where they are currently!
Apologies if this is nonsensical, its late lol
Beta Was this translation helpful? Give feedback.
All reactions