Package com.mrivanplays.jdcf
Class CommandData
- java.lang.Object
-
- com.mrivanplays.jdcf.CommandData
-
public final class CommandData extends java.lang.ObjectRepresents command data. Stores data about a specific command.
-
-
Constructor Summary
Constructors Constructor Description CommandData(@Nullable java.lang.String usage, @Nullable java.lang.String description, @NotNull java.lang.String[] names, boolean guildOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.StringgetDescription()Returns the description of theCommandthis command data is holding, if present.@NotNull java.lang.String[]getNames()Returns the name(s) of theCommandthis command data is holding.@Nullable java.lang.StringgetUsage()Returns the usage of theCommandthis command data is holding, if present.booleanisGuildOnly()Returns whenever theCommandthis command data is holding is guild only.
-
-
-
Method Detail
-
getUsage
@Nullable public @Nullable java.lang.String getUsage()
Returns the usage of theCommandthis command data is holding, if present.- Returns:
- usage
-
getDescription
@Nullable public @Nullable java.lang.String getDescription()
Returns the description of theCommandthis command data is holding, if present.- Returns:
- description
-
getNames
@NotNull public @NotNull java.lang.String[] getNames()
Returns the name(s) of theCommandthis command data is holding.- Returns:
- name(s)
-
isGuildOnly
public boolean isGuildOnly()
Returns whenever theCommandthis command data is holding is guild only.- Returns:
trueif guild only,falseotherwise
-
-