Class RoleUpdateEvent


  • public class RoleUpdateEvent
    extends RoleEvent
    Dispatched when a role is updated in a guild.

    The old role may not be present if roles are not stored.

    This event is dispatched by Discord.

    See Also:
    Guild Role Update
    • Method Detail

      • getCurrent

        public Role getCurrent()
        Gets the current, new version of the Role that was updated in the event.
        Returns:
        The current version of the updated Role.
      • getOld

        public Optional<Role> getOld()
        Gets the old version of the Role that was updated in this event. if present. This may not be available if Role are not stored.
        Returns:
        The old version of the updated Role, if present.