diff --git a/src/client.ts b/src/client.ts index 1e0f6af..21d393c 100644 --- a/src/client.ts +++ b/src/client.ts @@ -94,6 +94,13 @@ export class ClasschartsClient { this.studentId = user.id; this.studentName = user.name; } + /** + * @deprecated Use .login() instead + */ + async init(): Promise { + console.warn(".init() is deprecated, please use .login()"); + await this.login(); + } /** * Gets general information about the logged in student * @returns Student object