Package net.discordservices.dservices4j
Class Commands.CommandInfo
- java.lang.Object
-
- net.discordservices.dservices4j.Commands.CommandInfo
-
- Enclosing class:
- Commands
public static class Commands.CommandInfo extends Object
Class used for theaddCommand(...)
methods.
You set the name, description and category through the constructor.Note that the description and category can be set to
null
, which makes them default to the following values:description
defaults to an empty String (""
)category
defaults tonull
(Which is treated as All on the API)
-
-
Constructor Summary
Constructors Constructor Description CommandInfo(String name, String description, String category)
Constructor to set the CommandInfo instance, which will be used in the addCommand options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getCategory()
protected String
getDescription()
protected String
getName()
-
-
-
Constructor Detail
-
CommandInfo
public CommandInfo(String name, String description, String category)
Constructor to set the CommandInfo instance, which will be used in the addCommand options.You can provide
null
for the description and category to use their respective default value.
A null description is equal to using an empty String and a null category will be treated as category beingall
.- Parameters:
name
- Name of the command. Can't be null.description
- Description of the command. Can be set tonull
for no description.category
- Category of the command. Can be set tonull
for category All.- See Also:
Commands.addCommand(CommandInfo)
,Commands.addCommands(CommandInfo...)
,Commands.addCommands(List)
,Commands.setCommands(CommandInfo...)
,Commands.setCommands(List)
-
-