From e6385c6b4396893ba166c60e927b61281fe06908 Mon Sep 17 00:00:00 2001 From: ZelrDev Date: Sun, 6 Feb 2022 15:37:52 +0000 Subject: [PATCH] Fix announcements typo --- src/client.ts | 10 +++++----- src/types.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client.ts b/src/client.ts index e2538a2..9ec403b 100644 --- a/src/client.ts +++ b/src/client.ts @@ -2,7 +2,7 @@ import Undici from "undici"; import { RequestOptions } from "undici/types/dispatcher"; import { ActivityResponse, - AnnoucementsResponse, + AnnouncementsResponse, BadgesResponse, BehaviourResponse, DetentionsResponse, @@ -210,12 +210,12 @@ export class ClasschartsClient { ); } /** - * Lists the logged in student's annoucements - * @returns Array of annoucements + * Lists the logged in student's announcements + * @returns Array of announcements */ - async listAnnoucements(): Promise { + async listAnnouncements(): Promise { return await this.makeAuthedRequest( - API_BASE + "/annoucements/" + this.studentId, + API_BASE + "/announcements/" + this.studentId, { method: "GET", } diff --git a/src/types.ts b/src/types.ts index 5951abe..e4d405a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -277,4 +277,4 @@ export interface Annoucement { pupil_consents: Array; } -export type AnnoucementsResponse = Array \ No newline at end of file +export type AnnouncementsResponse = Array \ No newline at end of file