Class RoleUpdateColorEvent

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

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

    Can be used to retrieve the old color.

    Identifier: color

    • Constructor Detail

      • RoleUpdateColorEvent

        public RoleUpdateColorEvent​(JDA api,
                                    long responseNumber,
                                    Role role,
                                    int oldColor)
    • Method Detail

      • getOldColor

        public java.awt.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

        public java.awt.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