Package io.github.daflamingfox
Class TxtCmd
- java.lang.Object
-
- io.github.daflamingfox.TxtCmd
-
public class TxtCmd extends Object
The container for Text commands.- Author:
- Jeffrey Morris
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.javacord.api.DiscordApigetApi()Gets the DiscordApi of your bot.StringgetDescription()Gets the command description.CmdExecutorgetExecutor()Gets the command executor.StringgetKeyword()Gets the command keyword.String[]getKeywordAliases()Gets the command keyword aliases.StringgetPrefix()Gets the command prefix.StringgetUsage()Gets the command usage.
-
-
-
Constructor Detail
-
TxtCmd
public TxtCmd(String prefix, String keyword, String[] keywordAliases, CmdExecutor executor, org.javacord.api.DiscordApi api, String description, String usage)
Creates a new TxtCmd object.- Parameters:
prefix- The command prefix.keyword- The command keyword.keywordAliases- The command keyword aliases.executor- The command executor.api- The DiscordApi of your bot.description- The command description.usage- The command usage.
-
-
Method Detail
-
getPrefix
public String getPrefix()
Gets the command prefix.- Returns:
- The command prefix.
-
getKeyword
public String getKeyword()
Gets the command keyword.- Returns:
- The command keyword.
-
getKeywordAliases
public String[] getKeywordAliases()
Gets the command keyword aliases.- Returns:
- The command keyword aliases.
-
getExecutor
public CmdExecutor getExecutor()
Gets the command executor.- Returns:
- The command executor.
-
getApi
public org.javacord.api.DiscordApi getApi()
Gets the DiscordApi of your bot.- Returns:
- The DiscordApi of your bot.
-
getDescription
public String getDescription()
Gets the command description.- Returns:
- The command description.
-
getUsage
public String getUsage()
Gets the command usage.- Returns:
- The command usage.
-
-