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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThe new valueThe old valuebooleanWhether MFA was previously enabled or notMethods inherited from class net.dv8tion.jda.api.events.self.GenericSelfUpdateEventgetEntity, getPropertyIdentifier, getSelfUserMethods inherited from class net.dv8tion.jda.api.events.EventgetJDA, getRawData, getResponseNumber, toStringMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.dv8tion.jda.api.events.GenericEventgetJDA, getRawData, getResponseNumberMethods inherited from interface net.dv8tion.jda.api.events.UpdateEventgetEntityType
- 
Field Details- 
IDENTIFIER- See Also:
 
 
- 
- 
Constructor Details- 
SelfUpdateMFAEvent
 
- 
- 
Method Details- 
wasMfaEnabledpublic boolean wasMfaEnabled()Whether MFA was previously enabled or not- Returns:
- True, if the account had MFA enabled prior to this event
 
- 
getOldValueDescription copied from interface:UpdateEventThe old value- Specified by:
- getOldValuein interface- UpdateEvent<SelfUser,- Boolean> 
- Overrides:
- getOldValuein class- GenericSelfUpdateEvent<Boolean>
- Returns:
- The old value
 
- 
getNewValueDescription copied from interface:UpdateEventThe new value- Specified by:
- getNewValuein interface- UpdateEvent<SelfUser,- Boolean> 
- Overrides:
- getNewValuein class- GenericSelfUpdateEvent<Boolean>
- Returns:
- The new value
 
 
-