Package net.dv8tion.jda.api.events.role
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 aRole
was created/deleted/changed.
Every RoleEvent is derived from this event and can be casted.Can be used to detect any RoleEvent.
-
-
Constructor Summary
Constructors Constructor Description GenericRoleEvent(JDA api, long responseNumber, Role role)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Guild
getGuild()
The guild of the roleRole
getRole()
The role for this event-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-