Package net.dv8tion.jda.core.events.self
Class SelfUpdateMFAEvent
- java.lang.Object
-
- net.dv8tion.jda.core.events.Event
-
- net.dv8tion.jda.core.events.self.GenericSelfUpdateEvent<java.lang.Boolean>
-
- net.dv8tion.jda.core.events.self.SelfUpdateMFAEvent
-
- All Implemented Interfaces:
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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description SelfUpdateMFAEvent(JDA api, long responseNumber, boolean wasMfaEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
wasMfaEnabled()
Whether MFA was previously enabled or not-
Methods inherited from class net.dv8tion.jda.core.events.self.GenericSelfUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifier, getSelfUser, toString
-
Methods inherited from class net.dv8tion.jda.core.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.core.events.UpdateEvent
getEntityType
-
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SelfUpdateMFAEvent
public SelfUpdateMFAEvent(JDA api, long responseNumber, boolean wasMfaEnabled)
-
-