Class TxtCmd


  • public class TxtCmd
    extends Object
    The container for Text commands.
    Author:
    Jeffrey Morris
    • 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.