Class RoleUpdateIconEvent

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

public class RoleUpdateIconEvent extends GenericRoleUpdateEvent<RoleIcon>
Indicates that the Icon of a Role changed.

Can be used to detect when a role's icon or emoji changes and retrieve the old one

Identifier: icon

  • Field Details

  • Constructor Details

    • RoleUpdateIconEvent

      public RoleUpdateIconEvent(@Nonnull JDA api, long responseNumber, @Nonnull Role role, @Nullable RoleIcon oldIcon)
  • Method Details

    • getOldIcon

      @Nullable public RoleIcon getOldIcon()
      The old icon
      Returns:
      The old icon
    • getNewIcon

      @Nullable public RoleIcon getNewIcon()
      The new icon
      Returns:
      The new icon