From 523deae94d0c4fa2e7241e8e618e44fdc3ded982 Mon Sep 17 00:00:00 2001 From: Tyler Date: Mon, 5 Sep 2022 19:40:07 +0100 Subject: [PATCH] Fixed code example on readme.md Code example was misleading as `client.init` is not a function, replaced with proper function --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 35383f5..b4c74b4 100644 --- a/readme.md +++ b/readme.md @@ -12,7 +12,7 @@ Docs are very much a WIP, for any help with the library, please join the discord import { ClasschartsStudentClient } from "classcharts-api"; async function main() { const client = new ClasschartsStudentClient("classchartsCode", "01/1/2000"); - await client.init(); + await client.login(); console.log( await client.getBehaviour({ displayDate: "due_date",