Skip to content

Commit 195a5a4

Browse files
committed
fix: deprecate old backup method instead of removing
1 parent 7a806b0 commit 195a5a4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/structures/application/base.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ export class BaseApplication {
7272
this.url = `https://squarecloud.app/dashboard/app/${id}`;
7373
}
7474

75+
/** @deprecated Use `Application#backups` instead */
76+
get backup() {
77+
console.warn(
78+
"Application#backup is deprecated. Use Application#backups instead.",
79+
);
80+
return this.backups;
81+
}
82+
7583
async fetch(): Promise<Application> {
7684
return this.client.applications.fetch(this.id);
7785
}

0 commit comments

Comments
 (0)