From b2d9a6c5e1f323ac360d6dd660062e66f2fd2a32 Mon Sep 17 00:00:00 2001 From: James Cook Date: Wed, 27 Mar 2024 22:22:11 +0000 Subject: [PATCH] docs: add detentions example (thanks @jazzrox12) --- README.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2440fa4..8afaf44 100644 --- a/README.md +++ b/README.md @@ -43,8 +43,7 @@ contributing! If you have any questions, feel free to ask in the ## Requirements -- Node.js 18 or newer - \ +- Node.js 18 or newer\ OR - Deno @@ -293,6 +292,23 @@ Gets all detentions. ```typescript const detentions = await client.getDetentions(); console.log(detentions); + +/** + { + "success": 1, + "data": [ + { + "id": 12345678, + "attended": "no", + "date": "2024-03-28T00:00:00+00:00", + ... + } + ], + "meta": { + "detention_alias_plural": "detentions" + } +} +*/ ``` ## `.getAttendance` @@ -343,4 +359,4 @@ Changes the parent's password. ```typescript await client.changePassword("oldPassword", "newPassword"); -``` \ No newline at end of file +```