Package com.mrivanplays.jdcf
Class CommandData
- java.lang.Object
-
- com.mrivanplays.jdcf.CommandData
-
public final class CommandData extends java.lang.Object
Represents 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.String
getDescription()
Returns the description of theCommand
this command data is holding, if present.@NotNull java.lang.String[]
getNames()
Returns the name(s) of theCommand
this command data is holding.@Nullable java.lang.String
getUsage()
Returns the usage of theCommand
this command data is holding, if present.boolean
isGuildOnly()
Returns whenever theCommand
this command data is holding is guild only.
-
-
-
Method Detail
-
getUsage
@Nullable public @Nullable java.lang.String getUsage()
Returns the usage of theCommand
this command data is holding, if present.- Returns:
- usage
-
getDescription
@Nullable public @Nullable java.lang.String getDescription()
Returns the description of theCommand
this command data is holding, if present.- Returns:
- description
-
getNames
@NotNull public @NotNull java.lang.String[] getNames()
Returns the name(s) of theCommand
this command data is holding.- Returns:
- name(s)
-
isGuildOnly
public boolean isGuildOnly()
Returns whenever theCommand
this command data is holding is guild only.- Returns:
true
if guild only,false
otherwise
-
-