Class GenericRoleEvent

java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.role.GenericRoleEvent
All Implemented Interfaces:
GenericEvent
Direct Known Subclasses:
GenericRoleUpdateEvent, RoleCreateEvent, RoleDeleteEvent

public abstract class GenericRoleEvent extends Event
Indicates that a Role was created/deleted/changed.
Every RoleEvent is derived from this event and can be casted.

Can be used to detect any RoleEvent.

  • Constructor Details

  • Method Details

    • getRole

      @Nonnull public Role getRole()
      The role for this event
      Returns:
      The role for this event
    • getGuild

      @Nonnull public Guild getGuild()
      The guild of the role
      Returns:
      The guild of the role