Working with Pages in the Learning Module
This guide walks you through managing pages in the Learning Module. Pages are the smallest units for detailed notes and entries within sections.
Section 1: Adding a Page
Section titled “Section 1: Adding a Page”To add a page, use the command /learn page add <topic_slug> Required <section_slug> Required <title> <content> Required <emphasis> (optional).
- <topic_slug>: The slug of the topic.
- <section_slug>: The slug of the section.
- <title>: The name of the page (e.g., “useState”).
- <content>: Detailed content or notes.
You’ll receive an embed with the slug and additional info.
Section 2: Updating a Page
Section titled “Section 2: Updating a Page”To update a page, use /learn page update <topic_slug> Required <section_slug> Required <page_slug> Required <title> <content> <emphasis> (optional).
- <page_slug>: The slug of the page to update.
Section 3: Deleting a Page
Section titled “Section 3: Deleting a Page”To delete a page, use /learn page delete <topic_slug> Required <section_slug> Required <page_slug> Required.
This permanently removes the page.
Section 4: Listing Pages
Section titled “Section 4: Listing Pages”To list pages in a section, use /learn page list <topic_slug> Required <section_slug> Required.
You’ll receive an embed with the pages in that section.
Section 5: Reading a Page
Section titled “Section 5: Reading a Page”To read a specific page, use /learn page read <topic_slug> Required <section_slug> Required <page_slug> Required.
This displays the content of the page and additional info.