Enum Class DIH4JDAEvent

java.lang.Object
java.lang.Enum<DIH4JDAEvent>
xyz.dynxsty.dih4jda.events.DIH4JDAEvent
All Implemented Interfaces:
Serializable, Comparable<DIH4JDAEvent>, Constable

public enum DIH4JDAEvent extends Enum<DIH4JDAEvent>
  • Enum Constant Details

    • COMMAND_EXCEPTION

      public static final DIH4JDAEvent COMMAND_EXCEPTION
    • COMPONENT_EXCEPTION

      public static final DIH4JDAEvent COMPONENT_EXCEPTION
    • AUTOCOMPLETE_EXCEPTION

      public static final DIH4JDAEvent AUTOCOMPLETE_EXCEPTION
    • INSUFFICIENT_PERMISSIONS

      public static final DIH4JDAEvent INSUFFICIENT_PERMISSIONS
    • INVALID_USER

      public static final DIH4JDAEvent INVALID_USER
    • INVALID_ROLE

      public static final DIH4JDAEvent INVALID_ROLE
  • Method Details

    • values

      public static DIH4JDAEvent[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DIH4JDAEvent valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<DIH4JDAEvent>
    • fire

      public void fire(@Nonnull Set<DIH4JDAEventListener> listeners, @Nonnull DIH4JDA dih4JDA, Object... args)
      Fires an event from the DIH4JDAEventListener.
      Parameters:
      listeners - a set of all classes that extend the DIH4JDAEventListener.
      dih4JDA - the DIH4JDA instance,
      args - The event's arguments.
      Since:
      v1.5