Class TextChannelUpdatePositionEvent

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

    public class TextChannelUpdatePositionEvent
    extends GenericTextChannelUpdateEvent<java.lang.Integer>
    Indicates that a TextChannel's position changed.

    Can be used to detect when a TextChannel position changes and get its previous position.

    Identifier: position

    • Constructor Detail

      • TextChannelUpdatePositionEvent

        public TextChannelUpdatePositionEvent​(JDA api,
                                              long responseNumber,
                                              TextChannel channel,
                                              int oldPosition)
    • Method Detail

      • getOldPosition

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

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