Class RoleUpdateHoistedEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.role.GenericRoleEvent
net.dv8tion.jda.api.events.role.update.GenericRoleUpdateEvent<Boolean>
net.dv8tion.jda.api.events.role.update.RoleUpdateHoistedEvent
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<Role,
Boolean>
Indicates that a
Role
updated its hoist state.
Can be used to retrieve the hoist state.
Identifier: hoist
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRoleUpdateHoistedEvent
(JDA api, long responseNumber, Role role, boolean wasHoisted) -
Method Summary
Modifier and TypeMethodDescriptionThe new valueThe old valueboolean
Whether the role was hoistedMethods inherited from class net.dv8tion.jda.api.events.role.update.GenericRoleUpdateEvent
getEntity, getPropertyIdentifier
Methods inherited from class net.dv8tion.jda.api.events.role.GenericRoleEvent
getGuild, getRole
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getRawData, getResponseNumber
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
RoleUpdateHoistedEvent
-
-
Method Details
-
wasHoisted
public boolean wasHoisted()Whether the role was hoisted- Returns:
- True, if the role was hoisted before this update
-
getOldValue
Description copied from interface:UpdateEvent
The old value- Specified by:
getOldValue
in interfaceUpdateEvent<Role,
Boolean> - Overrides:
getOldValue
in classGenericRoleUpdateEvent<Boolean>
- Returns:
- The old value
-
getNewValue
Description copied from interface:UpdateEvent
The new value- Specified by:
getNewValue
in interfaceUpdateEvent<Role,
Boolean> - Overrides:
getNewValue
in classGenericRoleUpdateEvent<Boolean>
- Returns:
- The new value
-