Working with Topics in the Learning Module
This guide walks you through managing topics in the Learning Module. Topics are the foundation for organizing your learning content hierarchically.
Section 1: Adding a Topic
Section titled “Section 1: Adding a Topic”To add a topic, use the command /learn topic add <title> Required <description> <global>.
- <title>: The name of your topic (e.g., “React Basics”).
- <description>: Optional description for more details.
- <global>: A flag to set the scope. If true, the topic is global (accessible everywhere).
When created, the topic is automatically saved with its scope. You’ll receive an embed showing the slug (important for searching), scope, and additional info.
Section 2: Viewing a Topic
Section titled “Section 2: Viewing a Topic”To view a topic’s details, use /learn topic view <slug> Required.
This returns an embed with info about the topic and all associated sections.
Section 3: Updating a Topic
Section titled “Section 3: Updating a Topic”To update a topic, use /learn topic update <slug> Required <title> <description>.
- <slug>: The unique identifier to find the topic.
- <title>: New title (optional).
- <description>: New description (optional).
Section 4: Deleting a Topic
Section titled “Section 4: Deleting a Topic”To delete a topic, use /learn topic delete <slug> Required.
This permanently removes the topic and makes it inaccessible.
Section 5: Listing Topics
Section titled “Section 5: Listing Topics”To list topics related to you, use /learn topic list <scope> (optional).
- <scope>: Options: all (default), global, server, user.
- If not in a server, you can’t use “server” scope.
- “User” scope works anywhere and shows your personal topics.
You’ll receive an embed with the slug and title of your topics.