Working with Sections in the Learning Module
This guide walks you through managing sections in the Learning Module. Sections help subdivide topics into logical categories.
Section 1: Adding a Section
Section titled “Section 1: Adding a Section”To create a section, use the command /learn section add <topic_slug> Required <title> Required.
- <topic_slug>: The slug of the topic to add the section to.
- <title>: The name of the section (e.g., “Hooks”).
You’ll receive an embed with the slug and additional info.
Section 2: Updating a Section
Section titled “Section 2: Updating a Section”To update a section, use /learn section update <topic_slug> Required <title> (optional).
- <topic_slug>: The slug of the topic.
- <title>: New title for the section.
Section 3: Deleting a Section
Section titled “Section 3: Deleting a Section”To delete a section, use /learn section delete <topic_slug> Required <section_slug> Required.
- <topic_slug>: The slug of the topic.
- <section_slug>: The slug of the section to delete.
This permanently removes the section.
Section 4: Listing Sections
Section titled “Section 4: Listing Sections”To list sections of a topic, use /learn section list <topic_slug> Required.
- <topic_slug>: The slug of the topic.
You’ll receive an embed with the sections of that topic.
Section 5: Viewing a Section
Section titled “Section 5: Viewing a Section”To view a specific section, use /learn section view <topic_slug> Required <section_slug> Required.
- <topic_slug>: The slug of the topic.
- <section_slug>: The slug of the section.
This returns the pages belonging to this section and additional info.