Class CategoryUpdatePositionEvent

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

    public class CategoryUpdatePositionEvent
    extends GenericCategoryUpdateEvent<java.lang.Integer>
    Indicates that the position of a Category was updated.

    Can be used to retrieve the old position

    Identifier: position

    • Constructor Detail

      • CategoryUpdatePositionEvent

        public CategoryUpdatePositionEvent​(JDA api,
                                           long responseNumber,
                                           Category category,
                                           int oldPosition)
    • Method Detail

      • getOldPosition

        public int getOldPosition()
        The previous position of this Category
        Returns:
        The previous position
      • getNewPosition

        public int getNewPosition()
        The new position of this Category
        Returns:
        The new position