Interface PrefixCommand

All Superinterfaces:
ICommand

public interface PrefixCommand extends ICommand
A PrefixCommand is represented by a prefix. The default prefix is !.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(net.dv8tion.jda.api.events.message.MessageReceivedEvent event)
    This code block will be executed on the command execution.
    default String
    Gets the command prefix.

    Methods inherited from interface com.yosoyvillaa.vjcommands.command.ICommand

    getName
  • Method Details

    • getPrefix

      default String getPrefix()
      Gets the command prefix.
      Returns:
      the command prefix
    • execute

      void execute(net.dv8tion.jda.api.events.message.MessageReceivedEvent event)
      This code block will be executed on the command execution.
      Parameters:
      event - Event given by the Discord API