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