We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 195a5a4 commit 138d9d8Copy full SHA for 138d9d8
.changeset/hungry-cherries-look.md
@@ -0,0 +1,5 @@
1
+---
2
+"@squarecloud/api": patch
3
4
+
5
+Rename `deploys#current()` to `deploys#webhookURL()`.
src/modules/deploys.ts
@@ -29,17 +29,17 @@ export class DeploysModule {
29
Routes.apps.deployments.list(this.application.id),
30
);
31
32
- return data?.response;
+ return data.response;
33
}
34
35
/**
36
- * Gets the current deployment URL
+ * Gets the current webhook URL
37
*/
38
- async current() {
+ async webhookURL() {
39
const data = await this.application.client.api.request(
40
Routes.apps.deployments.current(this.application.id),
41
42
43
+ return data.response.webhook;
44
45
0 commit comments