Class RoleUpdateHoistedEvent

  • All Implemented Interfaces:
    GenericEvent, UpdateEvent<Role,​java.lang.Boolean>

    public class RoleUpdateHoistedEvent
    extends GenericRoleUpdateEvent<java.lang.Boolean>
    Indicates that a Role updated its hoist state.

    Can be used to retrieve the hoist state.

    Identifier: hoist

    • Constructor Detail

      • RoleUpdateHoistedEvent

        public RoleUpdateHoistedEvent​(@Nonnull
                                      JDA api,
                                      long responseNumber,
                                      @Nonnull
                                      Role role,
                                      boolean wasHoisted)
    • Method Detail

      • wasHoisted

        public boolean wasHoisted()
        Whether the role was hoisted
        Returns:
        True, if the role was hoisted before this update