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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRoleUpdateHoistedEvent(JDA api, long responseNumber, Role role, boolean wasHoisted) -
Method Summary
Modifier and TypeMethodDescriptionThe new valueThe old valuebooleanWhether the role was hoistedMethods inherited from class GenericRoleUpdateEvent
getEntity, getPropertyIdentifierMethods inherited from class GenericRoleEvent
getGuild, getRoleMethods inherited from class Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from interface GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface 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:UpdateEventThe old value- Specified by:
getOldValuein interfaceUpdateEvent<Role,Boolean> - Overrides:
getOldValuein classGenericRoleUpdateEvent<Boolean>- Returns:
- The old value
-
getNewValue
Description copied from interface:UpdateEventThe new value- Specified by:
getNewValuein interfaceUpdateEvent<Role,Boolean> - Overrides:
getNewValuein classGenericRoleUpdateEvent<Boolean>- Returns:
- The new value
-