-
Notifications
You must be signed in to change notification settings - Fork 417
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 & subscriptions #1487
base: dev
Are you sure you want to change the base?
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.
This is everything related to role connections
* @returns {Promise<Array<Object>>} An array of role connection metadata objects | ||
*/ | ||
editRoleConnectionMetadataRecords(data) { | ||
return this.requestHandler.request("PUT", Endpoints.ROLE_CONNECTION_METADATA_RECORDS(this.application.id), true, data); |
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.
May be worth regex validating key
. We do the same thing for application command names
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.
Sure. How's that?
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.
role subscriptions
Co-authored-by: bsian03 <chharry321@gmail.com>
Adds role connections to Eris.
Hopefully I haven't missed anything. I've checked both the docs and the above PR in the API GH repo (that Bsian kindly linked for me) but honestly the pr diff was a mess and hard to read so I could've missed something.
Also adds role subscriptions to Eris.
I need to add the message content for the role subscription message that Discord sends, but I've no idea wtf the content is so any help would be appreciated!Additions:
editRoleConnectionMetadataRecords()
func in ClientgetRoleConnectionMetadataRecords()
func in ClientMessage#roleSubscriptionData
propertyrole_connections_verification_url
property underOAuthApplicationInfo