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.
|
AccountManager |
getManager()
The
AccountManager
for the currently logged in account. |
AccountManagerUpdatable |
getManagerUpdatable()
The
AccountManagerUpdatable
for the currently logged in account. |
boolean |
isMfaEnabled()
If true, this account is protected by Multi-Factor authorization.
|
boolean |
isVerified()
The status of this account's verification.
|
getAvatarId, getAvatarUrl, getDefaultAvatarId, getDefaultAvatarUrl, getDiscriminator, getEffectiveAvatarUrl, getJDA, getMutualGuilds, getName, hasPrivateChannel, isBot, openPrivateChannel
getCreationTime, getId, getIdLong
formatTo, 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()
AccountManager
for the currently logged in account.
This can be used to atomically set account fields (like avatar/username)
AccountManagerUpdatable getManagerUpdatable()
AccountManagerUpdatable
for the currently logged in account.
This can be used to bulk update account fields (like avatar/username)