public class SelfInfoImpl extends UserImpl implements SelfInfo
Constructor and Description |
---|
SelfInfoImpl(java.lang.String id,
JDAImpl api) |
Modifier and Type | Method and Description |
---|---|
boolean |
isMfaEnabled()
If true, this account is protected by Multi-Factor authorizaiton.
If this is a Client account, then this describes the MFA status of the Client account. If this is a Bot account, then this describes the MFA status of the Client account that owns this Bot. |
boolean |
isVerified()
The status of this account's verification.
(Have you accepted the verification email) |
SelfInfoImpl |
setMfaEnabled(boolean enabled) |
SelfInfoImpl |
setVerified(boolean verified) |
equals, getAsMention, getAvatarId, getAvatarUrl, getDefaultAvatarId, getDefaultAvatarUrl, getDiscriminator, getId, getJDA, getName, getPrivateChannel, hashCode, isBot, isFake, setAvatarId, setBot, setDiscriminator, setName, setPrivateChannel, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAvatarId, getAvatarUrl, getDefaultAvatarId, getDefaultAvatarUrl, getDiscriminator, getJDA, getName, getPrivateChannel, isBot
getCreationTime, getId
getAsMention
public SelfInfoImpl(java.lang.String id, JDAImpl api)
public boolean isVerified()
SelfInfo
isVerified
in interface SelfInfo
public boolean isMfaEnabled()
SelfInfo
isMfaEnabled
in interface SelfInfo
public SelfInfoImpl setVerified(boolean verified)
public SelfInfoImpl setMfaEnabled(boolean enabled)