Class SelfUpdateMFAEvent

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

    public class SelfUpdateMFAEvent
    extends GenericSelfUpdateEvent<java.lang.Boolean>
    Indicates that the mfa level of the current user changed.
    This is relevant for elevated permissions (guild moderating/managing).

    Can be used to retrieve the old mfa level.

    Identifier: mfa_enabled

    • Constructor Detail

      • SelfUpdateMFAEvent

        public SelfUpdateMFAEvent​(@Nonnull
                                  JDA api,
                                  long responseNumber,
                                  boolean wasMfaEnabled)
    • Method Detail

      • wasMfaEnabled

        public boolean wasMfaEnabled()
        Whether MFA was previously enabled or not
        Returns:
        True, if the account had MFA enabled prior to this event