Class RoleUpdateMentionableEvent

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

    public class RoleUpdateMentionableEvent
    extends GenericRoleUpdateEvent<java.lang.Boolean>
    Indicates that a Role updated its mentionable state.

    Can be used to retrieve the old mentionable state.

    Identifier: mentionable

    • Constructor Detail

      • RoleUpdateMentionableEvent

        public RoleUpdateMentionableEvent​(@Nonnull
                                          JDA api,
                                          long responseNumber,
                                          @Nonnull
                                          Role role,
                                          boolean wasMentionable)
    • Method Detail

      • wasMentionable

        public boolean wasMentionable()
        Whether the role was mentionable
        Returns:
        True, if this role was mentionable before this update