Class DiscordChannelCommandEvent


public class DiscordChannelCommandEvent extends DiscordChannelEvent
  • Constructor Details

    • DiscordChannelCommandEvent

      public DiscordChannelCommandEvent(User user, Channel channel, Message message, String command, String arguments, boolean isAdmin)
      Class constructor for this event.
      Parameters:
      user -
      channel -
      command -
      arguments -
      isAdmin -
  • Method Details

    • setCommand

      public String setCommand(String command)
      Method that sets the command for this class. Mostly used for aliases.
      Returns:
      command
    • getCommand

      public String getCommand()
      Method that returns the command.
      Returns:
      command
    • getArguments

      public String getArguments()
      Method that returns the string of arguments.
      Returns:
      arguments
    • getArgs

      public String[] getArgs()
      Method that returns the array of arguments
      Returns:
      args
    • isAdmin

      public boolean isAdmin()
      Method that returns if the user a admin in the server.
    • toString

      public String toString()
      Method that returns this object as a string.
      Overrides:
      toString in class Object
      Returns: