Package xyz.dynxsty.dih4jda.events
Enum Class DIH4JDAEvent
- All Implemented Interfaces:
Serializable,Comparable<DIH4JDAEvent>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidfire(Set<DIH4JDAEventListener> listeners, DIH4JDA dih4JDA, Object... args) Fires an event from theDIH4JDAEventListener.toString()static DIH4JDAEventReturns the enum constant of this class with the specified name.static DIH4JDAEvent[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
COMMAND_EXCEPTION
-
COMPONENT_EXCEPTION
-
AUTOCOMPLETE_EXCEPTION
-
MODAL_EXCEPTION
-
INSUFFICIENT_PERMISSIONS
-
INVALID_USER
-
INVALID_ROLE
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<DIH4JDAEvent>
-
fire
public void fire(@Nonnull Set<DIH4JDAEventListener> listeners, @Nonnull DIH4JDA dih4JDA, Object... args) Fires an event from theDIH4JDAEventListener.- Parameters:
listeners- a set of all classes that extend theDIH4JDAEventListener.dih4JDA- theDIH4JDAinstance,args- The event's arguments.- Since:
- v1.5
-