Class CommandDocumentation
java.lang.Object
com.github.alex1304.ultimategdbot.api.command.CommandDocumentation
public class CommandDocumentation extends Object
Holds the documentation for a specific command.
-
Constructor Summary
Constructors Constructor Description CommandDocumentation(String shortDescription, Map<String,CommandDocumentationEntry> docEntries, boolean isHidden)
-
Method Summary
Modifier and Type Method Description Map<String,CommandDocumentationEntry>
getEntries()
Gets all entries corresponding to subsections of the command documentation.String
getShortDescription()
Gets the short description of the command.boolean
isHidden()
Gets whether the command should be hidden from the documentation front page.
-
Constructor Details
-
CommandDocumentation
public CommandDocumentation(String shortDescription, Map<String,CommandDocumentationEntry> docEntries, boolean isHidden)
-
-
Method Details
-
getShortDescription
Gets the short description of the command.- Returns:
- the short description
-
getEntries
Gets all entries corresponding to subsections of the command documentation.- Returns:
- the documentation entries
-
isHidden
public boolean isHidden()Gets whether the command should be hidden from the documentation front page.- Returns:
- true if hidden, false otherwise
-