Class RoleUpdatePositionEvent

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

    public class RoleUpdatePositionEvent
    extends GenericRoleUpdateEvent<java.lang.Integer>
    Indicates that a Role updated its position.

    Can be used to retrieve the old position.

    Identifier: position

    • Constructor Detail

      • RoleUpdatePositionEvent

        public RoleUpdatePositionEvent​(@Nonnull
                                       JDA api,
                                       long responseNumber,
                                       @Nonnull
                                       Role role,
                                       int oldPosition,
                                       int oldPositionRaw)
    • Method Detail

      • getOldPosition

        public int getOldPosition()
        The old position
        Returns:
        The old position
      • getOldPositionRaw

        public int getOldPositionRaw()
        The old position
        Returns:
        The old position
      • getNewPosition

        public int getNewPosition()
        The new position
        Returns:
        The new position
      • getNewPositionRaw

        public int getNewPositionRaw()
        The new position
        Returns:
        The new position