Package net.dv8tion.jda.api.events.self
Class SelfUpdateMFAEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.self.GenericSelfUpdateEvent<Boolean>
net.dv8tion.jda.api.events.self.SelfUpdateMFAEvent
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<SelfUser,
Boolean>
Indicates that the mfa level of the current user changed.
This is relevant for elevated permissions (guild moderating/managing).
This is relevant for elevated permissions (guild moderating/managing).
Can be used to retrieve the old mfa level.
Identifier: mfa_enabled
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe new valueThe old valueboolean
Whether MFA was previously enabled or notMethods inherited from class net.dv8tion.jda.api.events.self.GenericSelfUpdateEvent
getEntity, getPropertyIdentifier, getSelfUser, toString
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getResponseNumber
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
SelfUpdateMFAEvent
-
-
Method Details
-
wasMfaEnabled
public boolean wasMfaEnabled()Whether MFA was previously enabled or not- Returns:
- True, if the account had MFA enabled prior to this event
-
getOldValue
Description copied from interface:UpdateEvent
The old value- Specified by:
getOldValue
in interfaceUpdateEvent<SelfUser,
Boolean> - Overrides:
getOldValue
in classGenericSelfUpdateEvent<Boolean>
- Returns:
- The old value
-
getNewValue
Description copied from interface:UpdateEvent
The new value- Specified by:
getNewValue
in interfaceUpdateEvent<SelfUser,
Boolean> - Overrides:
getNewValue
in classGenericSelfUpdateEvent<Boolean>
- Returns:
- The new value
-