-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: role connections #906
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the pr looks good after all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other than that, looks good to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Summary
Implements application role connection ("linked roles") metadata and
role_connections_verification_url
from discord/discord-api-docs#5668, as well asRoleTags.is_linked_role
from discord/discord-api-docs#5771.Note that the
GET/PUT /users/@me/applications/{application.id}/role-connection
route isn't implemented, since that's more on the oauth side of things.As such, this PR supports fetching/editing the metadata configured by the bot ("guilds can require users to have some minimum number of cookies"), but evidently doesn't allow fetching/editing specific users' metadata values ("user x has y cookies").
Checklist
task lint
task pyright