Class RoleUpdateColorEvent

All Implemented Interfaces:
GenericEvent, UpdateEvent<Role,Integer>

public class RoleUpdateColorEvent extends GenericRoleUpdateEvent<Integer>
Indicates that a Role updated its color.

Can be used to retrieve the old color.

Identifier: color

  • Field Details

  • Constructor Details

    • RoleUpdateColorEvent

      public RoleUpdateColorEvent(@Nonnull JDA api, long responseNumber, @Nonnull Role role, int oldColor)
  • Method Details

    • getOldColor

      @Nullable public Color getOldColor()
      The old color
      Returns:
      The old color, or null
    • getOldColorRaw

      public int getOldColorRaw()
      The raw rgb value of the old color
      Returns:
      The raw rgb value of the old color
    • getNewColor

      @Nullable public Color getNewColor()
      The new color
      Returns:
      The new color, or null
    • getNewColorRaw

      public int getNewColorRaw()
      The raw rgb value of the new color
      Returns:
      The raw rgb value of the new color
    • getOldValue

      @Nonnull public Integer getOldValue()
      Description copied from interface: UpdateEvent
      The old value
      Specified by:
      getOldValue in interface UpdateEvent<Role,Integer>
      Overrides:
      getOldValue in class GenericRoleUpdateEvent<Integer>
      Returns:
      The old value
    • getNewValue

      @Nonnull public Integer getNewValue()
      Description copied from interface: UpdateEvent
      The new value
      Specified by:
      getNewValue in interface UpdateEvent<Role,Integer>
      Overrides:
      getNewValue in class GenericRoleUpdateEvent<Integer>
      Returns:
      The new value