public interface SelfUser extends User
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEmail()
Used to get the email of the currently logged in account.
NOTE: this is a AccountType.CLIENT method only! |
AccountManager |
getManager() |
AccountManagerUpdatable |
getManagerUpdatable() |
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) |
getAvatarId, getAvatarUrl, getDefaultAvatarId, getDefaultAvatarUrl, getDiscriminator, getJDA, getName, getPrivateChannel, hasPrivateChannel, isBot, openPrivateChannel
getCreationTime, getId
getAsMention
boolean isVerified()
boolean isMfaEnabled()
java.lang.String getEmail() throws AccountTypeException
AccountType.CLIENT
method only!AccountTypeException
- If this method is called when JDA#getAccountType()
does not return
AccountType.CLIENT
. E.g: If the logged in account isn't a Client account!AccountManager getManager()
AccountManagerUpdatable getManagerUpdatable()