Skip to content

Commit

Permalink
docs(examples): add files to discussions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed Feb 22, 2024
1 parent 94ce339 commit 26f645b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/discussions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ import { authenticatePronoteCredentials, PronoteApiAccountId } from "../src";
console.log(`[${message.created.toLocaleString()}]`, author, "to", receiver);
console.log(message.content);

for (const file of message.files) {
console.log("(attachment):", file.name, "=>", file.url);
}

console.log(); // Line break.
}

Expand Down

0 comments on commit 26f645b

Please sign in to comment.