Interface Command

All Known Implementing Classes:
GayrateCommand, HelpCommand, PingCommand, PlayCommand, PrefixCommand, SimprateCommand

public interface Command
Interface that can be used create commands that have both guild and slash command functionalities
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    runCommand(org.javacord.api.event.interaction.SlashCommandCreateEvent event)
    Method that runs the slash version of the command
    void
    runCommand(org.javacord.api.event.message.MessageCreateEvent event)
    Method that runs the guild version of the command
  • Method Details

    • runCommand

      void runCommand(org.javacord.api.event.message.MessageCreateEvent event)
      Method that runs the guild version of the command
      Parameters:
      event - the guild command trigger event
    • runCommand

      void runCommand(org.javacord.api.event.interaction.SlashCommandCreateEvent event)
      Method that runs the slash version of the command
      Parameters:
      event - the slash command trigger event