java.util.Formattable
, IFakeable
, IMentionable
, ISnowflake
, User
public interface SelfUser extends User
Modifier and Type | Method | Description |
---|---|---|
long |
getAllowedFileSize() |
Returns the maximum size for files that can be uploaded with this account.
|
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. |
java.lang.String |
getPhoneNumber() |
Used to get the phone number of the currently logged in account if a phone number has been attached to it.
|
boolean |
isMfaEnabled() |
If true, this account is protected by Multi-Factor authorization.
|
boolean |
isMobile() |
Shows whether there has ever been a mobile app connected to this account.
|
boolean |
isNitro() |
The Discord Nitro status of this account.
|
boolean |
isVerified() |
The status of this account's verification.
|
formatTo, getAsMention
getCreationTime, getId, getIdLong
getAvatarId, getAvatarUrl, getDefaultAvatarId, getDefaultAvatarUrl, getDiscriminator, getEffectiveAvatarUrl, getJDA, getMutualGuilds, getName, hasPrivateChannel, isBot, openPrivateChannel
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!boolean isMobile() throws AccountTypeException
AccountType.CLIENT
method only!true
if the account is linked with a mobile app, otherwise false
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!boolean isNitro() 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!java.lang.String getPhoneNumber() 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!long getAllowedFileSize()
Message.MAX_FILE_SIZE
,
Message.MAX_FILE_SIZE_NITRO
AccountManager getManager()
AccountManager
for the currently logged in account.
RestAction.queue()
.