UpdateEvent<SelfUser,java.lang.Boolean>
public class SelfUpdateMFAEvent extends GenericSelfUpdateEvent<java.lang.Boolean>
Can be used to retrieve the old mfa level.
Identifier: mfa_enabled
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
IDENTIFIER |
Constructor | Description |
---|---|
SelfUpdateMFAEvent(JDA api,
long responseNumber,
boolean wasMfaEnabled) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
wasMfaEnabled() |
Whether MFA was previously enabled or not
|
getJDA, getResponseNumber
getEntity, getNewValue, getOldValue, getPropertyIdentifier, getSelfUser, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntityType
public static final java.lang.String IDENTIFIER
public SelfUpdateMFAEvent(JDA api, long responseNumber, boolean wasMfaEnabled)