Interface CmdExecutor


  • public interface CmdExecutor
    The executor for commands, has a method for text, and one for slash.
    Author:
    Jeffrey Morris
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void slashExecute​(org.javacord.api.interaction.SlashCommandInteraction sci)
      Executes the slash command.
      void textExecute​(org.javacord.api.event.message.MessageCreateEvent event, String[] args)
      Executes the text command.
    • Method Detail

      • textExecute

        void textExecute​(org.javacord.api.event.message.MessageCreateEvent event,
                         String[] args)
        Executes the text command.
        Parameters:
        event - The event for the command.
        args - The arguments for the command.
      • slashExecute

        void slashExecute​(org.javacord.api.interaction.SlashCommandInteraction sci)
        Executes the slash command.
        Parameters:
        sci - The interaction for the command.