@discordjs/core 0.2.0-dev.1671062954-627511d.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/index.d.ts +22 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -675,6 +675,19 @@ var UsersAPI = class {
|
|
|
675
675
|
body: { recipient_id: userId }
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
|
+
async getConnections() {
|
|
679
|
+
return this.rest.get(Routes8.userConnections());
|
|
680
|
+
}
|
|
681
|
+
async getApplicationRoleConnection(applicationId) {
|
|
682
|
+
return this.rest.get(
|
|
683
|
+
Routes8.userApplicationRoleConnection(applicationId)
|
|
684
|
+
);
|
|
685
|
+
}
|
|
686
|
+
async updateApplicationRoleConnection(applicationId, options) {
|
|
687
|
+
return this.rest.put(Routes8.userApplicationRoleConnection(applicationId), {
|
|
688
|
+
body: options
|
|
689
|
+
});
|
|
690
|
+
}
|
|
678
691
|
};
|
|
679
692
|
__name(UsersAPI, "UsersAPI");
|
|
680
693
|
|